Plugin Directory

Changeset 2820542


Ignore:
Timestamp:
11/18/2022 01:18:04 PM (3 years ago)
Author:
tivnet
Message:

2.10.6

Location:
wpglobus/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wpglobus/trunk/includes/admin/class-wpglobus-admin-bar-menu.php

    r2099915 r2820542  
    6868            <script type="text/javascript">
    6969                //<![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
    8386                    });
    84 
    85                 });
     87                }
    8688                //]]>
    8789            </script>
     
    212214
    213215endif;
     216
     217# --- EOF
  • wpglobus/trunk/includes/class-wpglobus.php

    r2762913 r2820542  
    39403940        <script type='text/javascript'>
    39413941            /* <![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            }
    39433945            /* ]]> */
    39443946        </script>
  • wpglobus/trunk/readme.txt

    r2807251 r2820542  
    44Tags: WPGlobus, localization, multilanguage, multilingual, translate
    55Requires at least: 5.5
    6 Tested up to: 6.0
     6Tested up to: 6.1
    77Requires PHP: 5.6
    88Stable tag: trunk
     
    219219== Changelog ==
    220220
     221= 2.10.6 =
     222* Tested up to: 6.1
     223* Fix: (Core) Don't run JS script if jQuery is not defined.
     224
    221225= 2.10.5 =
    222226* Fix: (Core/Filters) Translations not loaded correctly in some situations (refactored `\WPGlobus_Filters::filter__get_locale`).
  • wpglobus/trunk/wpglobus.php

    r2807251 r2820542  
    1616 * Text Domain: wpglobus
    1717 * Domain Path: /languages/
    18  * Version: 2.10.5
     18 * Version: 2.10.6
    1919 * Author: WPGlobus
    2020 * Author URI: https://wpglobus.com/
     
    4545}
    4646
    47 define( 'WPGLOBUS_VERSION', '2.10.5' );
     47define( 'WPGLOBUS_VERSION', '2.10.6' );
    4848define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
    4949define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
Note: See TracChangeset for help on using the changeset viewer.