Changeset 2820542
- Timestamp:
- 11/18/2022 01:18:04 PM (3 years ago)
- Location:
- wpglobus/trunk
- Files:
-
- 4 edited
-
includes/admin/class-wpglobus-admin-bar-menu.php (modified) (2 diffs)
-
includes/class-wpglobus.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wpglobus.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpglobus/trunk/includes/admin/class-wpglobus-admin-bar-menu.php
r2099915 r2820542 68 68 <script type="text/javascript"> 69 69 //<![CDATA[ 70 jQuery(document).ready(function ($) { 71 wpglobus_select_lang = function (locale) { 72 $.post(ajaxurl, { 73 action: 'WPGlobus_process_ajax', 74 order: {action: 'wpglobus_select_lang', locale: locale} 75 }, function (d) { 76 }) 77 .done(function () { 78 window.location.reload(); 79 }); 80 } 81 $('#wpglobus-default-locale').on('click', function (e) { 82 wpglobus_select_lang('<?php echo esc_js( WPGlobus::Config()->locale[ WPGlobus::Config()->language ] ); ?>'); 70 if ( 'function' === typeof jQuery ) { 71 jQuery(document).ready(function ($) { 72 wpglobus_select_lang = function (locale) { 73 $.post(ajaxurl, { 74 action: 'WPGlobus_process_ajax', 75 order: {action: 'wpglobus_select_lang', locale: locale} 76 }, function (d) { 77 }) 78 .done(function () { 79 window.location.reload(); 80 }); 81 } 82 $('#wpglobus-default-locale').on('click', function (e) { 83 wpglobus_select_lang('<?php echo esc_js( WPGlobus::Config()->locale[ WPGlobus::Config()->language ] ); ?>'); 84 }); 85 83 86 }); 84 85 }); 87 } 86 88 //]]> 87 89 </script> … … 212 214 213 215 endif; 216 217 # --- EOF -
wpglobus/trunk/includes/class-wpglobus.php
r2762913 r2820542 3940 3940 <script type='text/javascript'> 3941 3941 /* <![CDATA[ */ 3942 jQuery('#wp-admin-bar-site-name a').eq(0).text("<?php echo esc_js( $bn ); ?>"); 3942 if ( 'function' === typeof jQuery ) { 3943 jQuery('#wp-admin-bar-site-name a').eq(0).text("<?php echo esc_js( $bn ); ?>"); 3944 } 3943 3945 /* ]]> */ 3944 3946 </script> -
wpglobus/trunk/readme.txt
r2807251 r2820542 4 4 Tags: WPGlobus, localization, multilanguage, multilingual, translate 5 5 Requires at least: 5.5 6 Tested up to: 6. 06 Tested up to: 6.1 7 7 Requires PHP: 5.6 8 8 Stable tag: trunk … … 219 219 == Changelog == 220 220 221 = 2.10.6 = 222 * Tested up to: 6.1 223 * Fix: (Core) Don't run JS script if jQuery is not defined. 224 221 225 = 2.10.5 = 222 226 * Fix: (Core/Filters) Translations not loaded correctly in some situations (refactored `\WPGlobus_Filters::filter__get_locale`). -
wpglobus/trunk/wpglobus.php
r2807251 r2820542 16 16 * Text Domain: wpglobus 17 17 * Domain Path: /languages/ 18 * Version: 2.10. 518 * Version: 2.10.6 19 19 * Author: WPGlobus 20 20 * Author URI: https://wpglobus.com/ … … 45 45 } 46 46 47 define( 'WPGLOBUS_VERSION', '2.10. 5' );47 define( 'WPGLOBUS_VERSION', '2.10.6' ); 48 48 define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); 49 49 define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
Note: See TracChangeset
for help on using the changeset viewer.