Changeset 3223618
- Timestamp:
- 01/16/2025 02:08:17 PM (12 months ago)
- Location:
- menu-item-types/trunk
- Files:
-
- 4 edited
-
core/App.php (modified) (2 diffs)
-
core/Base/Plugin.php (modified) (1 diff)
-
menu-item-types.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
menu-item-types/trunk/core/App.php
r3115898 r3223618 38 38 public function init(){ 39 39 40 $this->loadTranslations();40 add_action('init', [ $this, 'loadTranslations' ]); 41 41 42 42 if( ! $this->isAcfLoaded() ){ … … 62 62 * @return void 63 63 */ 64 p rotectedfunction loadTranslations(){65 $locale = get_ locale();64 public function loadTranslations(){ 65 $locale = get_user_locale(); 66 66 $locale = apply_filters( 'plugin_locale', $locale, 'menu-item-types' ); 67 67 load_textdomain( 'menu-item-types', WP_LANG_DIR . '/plugins/menu-item-types-' . $locale . '.mo' ); -
menu-item-types/trunk/core/Base/Plugin.php
r3115898 r3223618 17 17 $this->setDirectoryPath( $mainPluginFilePath ) ; 18 18 $this->setPluginUrl(); 19 $this->setVersion();19 add_action('init', [$this, 'setVersion']); 20 20 } 21 21 22 p rivatefunction setVersion(){22 public function setVersion(){ 23 23 if( ! function_exists('get_plugin_data') ){ 24 24 require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); -
menu-item-types/trunk/menu-item-types.php
r3115898 r3223618 4 4 Plugin URI: https://maxpertici.fr#menu-item-types 5 5 Description: Use elements of a personalized type in the navigation menus. 6 Version: 1. 56 Version: 1.6 7 7 Author: @maxpertici 8 8 Author URI: https://maxpertici.fr -
menu-item-types/trunk/readme.txt
r3116088 r3223618 5 5 Requires at least: 5.8 6 6 Tested up to: 6.6 7 Stable tag: 1. 57 Stable tag: 1.6 8 8 Requires PHP: 7.0 9 9 License: GPLv2 … … 85 85 == Changelog == 86 86 87 = 1.6 = 88 * Fix : translation's notices 89 * Add : user's locale support 90 87 91 = 1.5 = 88 92 * Add : 2 hooks mitypes_init & mitypes_setup
Note: See TracChangeset
for help on using the changeset viewer.