⚡ NEW: Changeset/ - HD Photos!

Changeset 3223618


Ignore:
Timestamp:
01/16/2025 02:08:17 PM (12 months ago)
Author:
maxpertici
Message:

mitypes / trunk / 1.6

Location:
menu-item-types/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • menu-item-types/trunk/core/App.php

    r3115898 r3223618  
    3838    public function init(){
    3939
    40         $this->loadTranslations();
     40        add_action('init', [ $this, 'loadTranslations' ]);
    4141
    4242        if( ! $this->isAcfLoaded() ){
     
    6262     * @return void
    6363     */
    64     protected function loadTranslations(){
    65         $locale = get_locale();
     64    public function loadTranslations(){
     65        $locale = get_user_locale();
    6666        $locale = apply_filters( 'plugin_locale', $locale, 'menu-item-types' );
    6767        load_textdomain( 'menu-item-types', WP_LANG_DIR . '/plugins/menu-item-types-' . $locale . '.mo' );
  • menu-item-types/trunk/core/Base/Plugin.php

    r3115898 r3223618  
    1717        $this->setDirectoryPath( $mainPluginFilePath ) ;
    1818        $this->setPluginUrl();
    19         $this->setVersion();
     19        add_action('init', [$this, 'setVersion']);
    2020    }
    2121
    22     private function setVersion(){
     22    public function setVersion(){
    2323        if( ! function_exists('get_plugin_data') ){
    2424            require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
  • menu-item-types/trunk/menu-item-types.php

    r3115898 r3223618  
    44Plugin URI:   https://maxpertici.fr#menu-item-types
    55Description:  Use elements of a personalized type in the navigation menus.
    6 Version:      1.5
     6Version:      1.6
    77Author:       @maxpertici
    88Author URI:   https://maxpertici.fr
  • menu-item-types/trunk/readme.txt

    r3116088 r3223618  
    55Requires at least: 5.8
    66Tested up to: 6.6
    7 Stable tag: 1.5
     7Stable tag: 1.6
    88Requires PHP: 7.0
    99License: GPLv2
     
    8585== Changelog ==
    8686
     87= 1.6 =
     88* Fix : translation's notices
     89* Add : user's locale support
     90
    8791= 1.5 =
    8892* Add : 2 hooks mitypes_init & mitypes_setup
Note: See TracChangeset for help on using the changeset viewer.