Plugin Directory

Changeset 3329547


Ignore:
Timestamp:
07/17/2025 09:40:52 AM (8 months ago)
Author:
galaxyweblinks
Message:

Released version 1.7 of the plugin. Added translation.

Location:
disable-feeds-wp
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • disable-feeds-wp/trunk/disable-feeds-wp.php

    r3281867 r3329547  
    44*  Plugin URI: https://wordpress.org/plugins/disable-feeds-wp/
    55*  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.6
     6*  Version: 1.7
    77*  Author: Galaxy Weblinks
    88*  Author URI: http://galaxyweblinks.com
     
    4141
    4242    /**
    43     * Instance class object
    44     *
    45     * @var   object
    46     * @since 1.0
    47     */
     43    * Instance class object
     44    *
     45    * @var   object
     46    * @since 1.0
     47    */
    4848    private static $instance = null;
    4949
     
    5757
    5858    /**
    59     * Initialize the class sets its properties.
     59    * Initialize the class sets its properties.
    6060     *
    61     * @since 1.0
    62     */
     61    * @since 1.0
     62    */
    6363    private function __construct(){
    6464        if ( is_admin() ) {
     
    8484    function dfwp_added_custom_plugin_links($links, $file) {
    8585        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>';
    8888        }
    8989        return $links;
     
    9696    */
    9797    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' );
    9999        register_setting( 'reading', 'dfwp_redirect' );
    100100    }
     
    111111
    112112        if ( $plugin == $plugin_file ) {
    113             $settings = array('settings' => '<a href="' . admin_url('options-reading.php') . '">' . __('Settings', 'dfwp') . '</a>');
     113            $settings = array('settings' => '<a href="' . admin_url('options-reading.php') . '">' . __('Settings', 'disable-feeds-wp') . '</a>');
    114114            $actions = array_merge($settings, $actions);
    115115        }
     
    124124        $redirect = $this->dfwp_redirect_status();
    125125       
    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>';
    127127        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>';
    129129        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>';
    133133        echo '<ol>';
    134134        echo '<li>' . esc_url(home_url()) . '/?feed=rss</li>';
     
    137137        echo '<li>' . esc_url(home_url()) . '/?feed=atom</li>';
    138138        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>';
    140140        echo '<ol>';
    141141        echo '<li>' . esc_url(home_url()) . '/feed/</li>';
  • disable-feeds-wp/trunk/readme.txt

    r3281867 r3329547  
    4747== Changelog ==
    4848
     49= 1.7 =
     50Update i18n translation
     51
    4952= 1.6 =
    5053Stable Release
     
    6972
    7073== Upgrade Notice ==
     74
     75= 1.7 =
     76Update i18n translation
    7177
    7278= 1.6 =
Note: See TracChangeset for help on using the changeset viewer.