Plugin Directory

Changeset 3300671


Ignore:
Timestamp:
05/26/2025 12:18:48 PM (8 months ago)
Author:
tijmensmit
Message:

Adjusted the loading order of the translations

Location:
wp-store-locator/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-store-locator/trunk/inc/class-i18n.php

    r3272210 r3300671  
    2121         */         
    2222        function __construct() {
    23             add_action( 'plugins_loaded', array( $this, 'load_plugin_textdomain' ) );   
     23            add_action( 'init', array( $this, 'load_plugin_textdomain' ) );   
    2424        }
    2525               
  • wp-store-locator/trunk/readme.txt

    r3286114 r3300671  
    55Requires at least: 3.7
    66Tested up to: 6.8.1
    7 Stable tag: 2.2.251
     7Stable tag: 2.2.252
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    127127== Changelog ==
    128128
     129= 2.2.252
     130* Changed: Adjusted the loading order of the translations to prevent the 'Function _load_textdomain_just_in_time was called incorrectly' notice from appearing.     
     131
    129132= 2.2.251
    130133* Fixed: Security issue ( Stored XSS vulnerability ) in the translation strings. Thanks to [cleantalk](https://cleantalk.org/) for reporting this.
  • wp-store-locator/trunk/wp-store-locator.php

    r3272210 r3300671  
    55Author: Tijmen Smit
    66Author URI: https://wpstorelocator.co/
    7 Version: 2.2.251
     7Version: 2.2.252
    88Text Domain: wpsl
    99Domain Path: /languages/
     
    7474            $this->define_constants();
    7575            $this->includes();
    76             $this->plugin_settings();
    7776
    7877            // Load classes
     
    8180            $this->frontend   = new WPSL_Frontend();
    8281            $this->templates  = new WPSL_Templates();
     82
     83            add_action( 'init', array( $this, 'plugin_settings' ) );
    8384                       
    8485            register_activation_hook( __FILE__, array( $this, 'install' ) );
Note: See TracChangeset for help on using the changeset viewer.