Plugin Directory

Changeset 2735800


Ignore:
Timestamp:
06/01/2022 04:12:04 PM (4 years ago)
Author:
dereklocalize
Message:

Now supports WP 6.0

Location:
localizejs
Files:
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • localizejs/trunk/localizejs.php

    r2727570 r2735800  
    55 * Description: Easily integrate Localize into your WordPress site.
    66 * Author: Localize
    7  * Version: 1.2.2
     7 * Version: 1.2.3
    88 * Author URI: https://localizejs.com
    99 */
     
    7070    $localizejs_settings_url_options = get_option( 'localizejs_settings_url_options' );
    7171
    72     wp_register_script('localize', ( '//global.localizecdn.com/localize.js' ), false, null, false);
     72    wp_register_script('localize', ( 'https://app.lz.dev:8094/client/built/localize.js' ), false, null, false);
     73//    wp_register_script('localize', ( '//global.localizecdn.com/localize.js' ), false, null, false);
    7374    wp_register_script('localizeFallback', plugins_url('/localizejs.js',__FILE__) , false, null, false);
    7475
     
    117118        $localize_api = new Localize_API();
    118119        $resultObj = $localize_api->getAvailableLangs();
    119         $available_languages = json_encode($resultObj->el);
     120        $available_languages = $resultObj === null ? '[]' : json_encode($resultObj->el);
    120121        define('AVAILABLE_LANGUAGES', $available_languages);
    121         define('SOURCE_LANGUAGE', $resultObj->source);
     122        define('SOURCE_LANGUAGE', $resultObj === null ? 'en' : $resultObj->source);
    122123    }
    123124}
  • localizejs/trunk/readme.txt

    r2727497 r2735800  
    22Contributors: dereklocalize, kgblocalize, jonathanpeterwu
    33Tags: localize, localize.js, localizejs, translate, translations, localise, localization, localisation, l10n, i18n, language, switcher
    4 Requires at least: 3.0
    5 Tested up to: 5.9
     4Requires at least: 5.0
     5Tested up to: 6.0
    66Requires PHP: 7.4
    77Stable tag: 1.2.2
     
    7575
    7676== Changelog ==
     77= 1.2.3 =
     78* Gracefully fail when Localize service is not reachable.
     79
    7780= 1.2.2 =
    7881* Do not add language subdirectory for wp-content paths.
Note: See TracChangeset for help on using the changeset viewer.