Plugin Directory

Changeset 3274417


Ignore:
Timestamp:
04/16/2025 09:20:03 AM (10 months ago)
Author:
daext
Message:

Committing and tagging 1.12

Location:
hreflang-manager-lite
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • hreflang-manager-lite/tags/1.12/admin/class-daexthrmal-admin.php

    r3091392 r3274417  
    7777        add_action( 'wp_trash_post', array( $this, 'delete_post_connection' ) );
    7878
    79         // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce non-necessary for menu selection.
     79        // Require and instantiate the related classes used to handle the menus.
     80        add_action( 'init', array( $this, 'handle_menus' ) );
     81    }
     82
     83    /**
     84     * Return an instance of this class.
     85     *
     86     * @return self|null
     87     */
     88    public static function get_instance() {
     89
     90        if ( null === self::$instance ) {
     91            self::$instance = new self();
     92        }
     93
     94        return self::$instance;
     95    }
     96
     97    /**
     98     * If we are in one of the plugin back-end menus require and instantiate the related class used to handle the menu.
     99     *
     100     * @return void
     101     */
     102    public function handle_menus() {
     103
     104        // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce non-necessary for menu selection.
    80105        $page_query_param = isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : null;
    81106
    82         // Require and instantiate the class used to register the menu options.
     107        // Require and instantiate the class used to handle the current menu.
    83108        if ( null !== $page_query_param ) {
    84109
     
    157182            }
    158183        }
    159     }
    160 
    161     /**
    162      * Return an instance of this class.
    163      *
    164      * @return self|null
    165      */
    166     public static function get_instance() {
    167 
    168         if ( null === self::$instance ) {
    169             self::$instance = new self();
    170         }
    171 
    172         return self::$instance;
     184
    173185    }
    174186
  • hreflang-manager-lite/tags/1.12/init.php

    r3199299 r3274417  
    33 * Plugin Name: Hreflang Manager
    44 * Description: Set language and regional URL for better SEO performance. (Lite Version)
    5  * Version: 1.11
     5 * Version: 1.12
    66 * Author: DAEXT
    77 * Author URI: https://daext.com
  • hreflang-manager-lite/tags/1.12/readme.txt

    r3199299 r3274417  
    44Donate link: https://daext.com
    55Requires at least: 4.0
    6 Tested up to: 6.7.1
     6Tested up to: 6.8
    77Requires PHP: 5.2
    8 Stable tag: 1.11
     8Stable tag: 1.12
    99License: GPLv3
    1010
     
    6464
    6565== Changelog ==
     66
     67= 1.12 =
     68
     69*April 16, 2025*
     70
     71* Fixed PHP notice caused by early use of translation functions.
    6672
    6773= 1.11 =
  • hreflang-manager-lite/tags/1.12/shared/class-daexthrmal-shared.php

    r3199299 r3274417  
    4141
    4242        $this->data['slug'] = 'daexthrmal';
    43         $this->data['ver']  = '1.11';
     43        $this->data['ver']  = '1.12';
    4444        $this->data['dir']  = substr( plugin_dir_path( __FILE__ ), 0, -7 );
    4545        $this->data['url']  = substr( plugin_dir_url( __FILE__ ), 0, -7 );
  • hreflang-manager-lite/trunk/admin/class-daexthrmal-admin.php

    r3091392 r3274417  
    7777        add_action( 'wp_trash_post', array( $this, 'delete_post_connection' ) );
    7878
    79         // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce non-necessary for menu selection.
     79        // Require and instantiate the related classes used to handle the menus.
     80        add_action( 'init', array( $this, 'handle_menus' ) );
     81    }
     82
     83    /**
     84     * Return an instance of this class.
     85     *
     86     * @return self|null
     87     */
     88    public static function get_instance() {
     89
     90        if ( null === self::$instance ) {
     91            self::$instance = new self();
     92        }
     93
     94        return self::$instance;
     95    }
     96
     97    /**
     98     * If we are in one of the plugin back-end menus require and instantiate the related class used to handle the menu.
     99     *
     100     * @return void
     101     */
     102    public function handle_menus() {
     103
     104        // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce non-necessary for menu selection.
    80105        $page_query_param = isset( $_GET['page'] ) ? sanitize_key( wp_unslash( $_GET['page'] ) ) : null;
    81106
    82         // Require and instantiate the class used to register the menu options.
     107        // Require and instantiate the class used to handle the current menu.
    83108        if ( null !== $page_query_param ) {
    84109
     
    157182            }
    158183        }
    159     }
    160 
    161     /**
    162      * Return an instance of this class.
    163      *
    164      * @return self|null
    165      */
    166     public static function get_instance() {
    167 
    168         if ( null === self::$instance ) {
    169             self::$instance = new self();
    170         }
    171 
    172         return self::$instance;
     184
    173185    }
    174186
  • hreflang-manager-lite/trunk/init.php

    r3199299 r3274417  
    33 * Plugin Name: Hreflang Manager
    44 * Description: Set language and regional URL for better SEO performance. (Lite Version)
    5  * Version: 1.11
     5 * Version: 1.12
    66 * Author: DAEXT
    77 * Author URI: https://daext.com
  • hreflang-manager-lite/trunk/readme.txt

    r3199299 r3274417  
    44Donate link: https://daext.com
    55Requires at least: 4.0
    6 Tested up to: 6.7.1
     6Tested up to: 6.8
    77Requires PHP: 5.2
    8 Stable tag: 1.11
     8Stable tag: 1.12
    99License: GPLv3
    1010
     
    6464
    6565== Changelog ==
     66
     67= 1.12 =
     68
     69*April 16, 2025*
     70
     71* Fixed PHP notice caused by early use of translation functions.
    6672
    6773= 1.11 =
  • hreflang-manager-lite/trunk/shared/class-daexthrmal-shared.php

    r3199299 r3274417  
    4141
    4242        $this->data['slug'] = 'daexthrmal';
    43         $this->data['ver']  = '1.11';
     43        $this->data['ver']  = '1.12';
    4444        $this->data['dir']  = substr( plugin_dir_path( __FILE__ ), 0, -7 );
    4545        $this->data['url']  = substr( plugin_dir_url( __FILE__ ), 0, -7 );
Note: See TracChangeset for help on using the changeset viewer.