Changeset 3329547
- Timestamp:
- 07/17/2025 09:40:52 AM (8 months ago)
- Location:
- disable-feeds-wp
- Files:
-
- 7 added
- 2 edited
-
tags/1.7 (added)
-
tags/1.7/disable-feeds-wp.php (added)
-
tags/1.7/gpl-2.0.txt (added)
-
tags/1.7/index.php (added)
-
tags/1.7/readme.txt (added)
-
tags/1.7/screenshot (added)
-
tags/1.7/screenshot/screenshot1.png (added)
-
trunk/disable-feeds-wp.php (modified) (8 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
disable-feeds-wp/trunk/disable-feeds-wp.php
r3281867 r3329547 4 4 * Plugin URI: https://wordpress.org/plugins/disable-feeds-wp/ 5 5 * Description: Disable Feeds WP is a WordPress plugin to disable all RSS/Atom/RDF WordPress feeds on your website/blog. It is very useful if you use WordPress purely as a content management system (and not for blogging). All requests for feeds will be redirected to the corresponding HTML content. 6 * Version: 1. 66 * Version: 1.7 7 7 * Author: Galaxy Weblinks 8 8 * Author URI: http://galaxyweblinks.com … … 41 41 42 42 /** 43 * Instance class object44 *45 * @var object46 * @since 1.047 */43 * Instance class object 44 * 45 * @var object 46 * @since 1.0 47 */ 48 48 private static $instance = null; 49 49 … … 57 57 58 58 /** 59 * Initialize the class sets its properties.59 * Initialize the class sets its properties. 60 60 * 61 * @since 1.062 */61 * @since 1.0 62 */ 63 63 private function __construct(){ 64 64 if ( is_admin() ) { … … 84 84 function dfwp_added_custom_plugin_links($links, $file) { 85 85 if ($file === 'disable-feeds-wp/disable-feeds-wp.php') { 86 $links[] = '<a href="https://wp-plugins.galaxyweblinks.com/wp-plugins/disable-feeds-wp/doc/" target="_blank"> Documentation</a>';87 $links[] = '<a href="https://wp-plugins.galaxyweblinks.com/contact/" target="_blank"> Contact Support</a>';86 $links[] = '<a href="https://wp-plugins.galaxyweblinks.com/wp-plugins/disable-feeds-wp/doc/" target="_blank">' . esc_html__( 'Documentation', 'disable-feeds-wp' ) . '</a>'; 87 $links[] = '<a href="https://wp-plugins.galaxyweblinks.com/contact/" target="_blank">' . esc_html__( 'Contact Support', 'disable-feeds-wp' ) . '</a>'; 88 88 } 89 89 return $links; … … 96 96 */ 97 97 public function dfwp_admin_setup(){ 98 add_settings_field( 'dfwp_redirect', 'Disable Feeds', array( $this, 'dfwp_settings_field' ), 'reading' );98 add_settings_field( 'dfwp_redirect', __( 'Disable Feeds', 'disable-feeds-wp' ), array( $this, 'dfwp_settings_field' ), 'reading' ); 99 99 register_setting( 'reading', 'dfwp_redirect' ); 100 100 } … … 111 111 112 112 if ( $plugin == $plugin_file ) { 113 $settings = array('settings' => '<a href="' . admin_url('options-reading.php') . '">' . __('Settings', 'd fwp') . '</a>');113 $settings = array('settings' => '<a href="' . admin_url('options-reading.php') . '">' . __('Settings', 'disable-feeds-wp') . '</a>'); 114 114 $actions = array_merge($settings, $actions); 115 115 } … … 124 124 $redirect = $this->dfwp_redirect_status(); 125 125 126 echo '<p>' . esc_html ( 'By default, all feeds are disabled, and all requests for feeds are redirected to the corresponding page content. You can tweak this behaviour below.') . '</p>';126 echo '<p>' . esc_html__('By default, all feeds are disabled, and all requests for feeds are redirected to the corresponding page content. You can tweak this behaviour below.', 'disable-feeds-wp') . '</p>'; 127 127 echo '<p><input type="radio" name="dfwp_redirect" value="on" id="dfwp_redirect_redirect_yes" class="radio" ' . checked( $redirect, 'on', false ) . '/>'; 128 echo '<label for="dfwp_redirect_redirect_yes">' . esc_html ('Redirect feed requests on the home page.') . '</label>';128 echo '<label for="dfwp_redirect_redirect_yes">' . esc_html__('Redirect feed requests on the home page.', 'disable-feeds-wp') . '</label>'; 129 129 echo '<br /><input type="radio" name="dfwp_redirect" value="off" id="dfwp_redirect_redirect_no" class="radio" ' . checked( $redirect, 'off', false ) . '/>'; 130 echo '<label for="dfwp_redirect_redirect_no">' . esc_html ('Redirect feed requests on the 404 page.') . ' </label></p>';131 echo '<br /><h3>' . esc_html ('Finding Your Feed URL') . '</h3>';132 echo '<p><strong>' . esc_html ('There are four possible URLs for each of your feeds. Any of these will work.') . '</strong></p>';130 echo '<label for="dfwp_redirect_redirect_no">' . esc_html__('Redirect feed requests on the 404 page.', 'disable-feeds-wp') . ' </label></p>'; 131 echo '<br /><h3>' . esc_html__('Finding Your Feed URL', 'disable-feeds-wp') . '</h3>'; 132 echo '<p><strong>' . esc_html__('There are four possible URLs for each of your feeds. Any of these will work.', 'disable-feeds-wp') . '</strong></p>'; 133 133 echo '<ol>'; 134 134 echo '<li>' . esc_url(home_url()) . '/?feed=rss</li>'; … … 137 137 echo '<li>' . esc_url(home_url()) . '/?feed=atom</li>'; 138 138 echo '</ol>'; 139 echo '<p><strong>' . esc_html ('If you are using custom permalinks, you should be able to reach them through this usage:') . '</strong></p>';139 echo '<p><strong>' . esc_html__('If you are using custom permalinks, you should be able to reach them through this usage:', 'disable-feeds-wp') . '</strong></p>'; 140 140 echo '<ol>'; 141 141 echo '<li>' . esc_url(home_url()) . '/feed/</li>'; -
disable-feeds-wp/trunk/readme.txt
r3281867 r3329547 47 47 == Changelog == 48 48 49 = 1.7 = 50 Update i18n translation 51 49 52 = 1.6 = 50 53 Stable Release … … 69 72 70 73 == Upgrade Notice == 74 75 = 1.7 = 76 Update i18n translation 71 77 72 78 = 1.6 =
Note: See TracChangeset
for help on using the changeset viewer.