Making WordPress.org

Changeset 2067


Ignore:
Timestamp:
11/10/2015 05:42:07 AM (9 years ago)
Author:
dd32
Message:

Translate: JS Warnings: When requeueing the editor stylesheet, only add the i18n data if it's been registered.
See [2066] & #1390

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-js-warnings/wporg-js-warnings.php

    r2066 r2067  
    2727
    2828        wp_register_script( 'editor-core', $query->src, $query->deps, $query->ver );
    29         wp_localize_script( 'editor-core', $query->extra['l10n'][0], $query->extra['l10n'][1] );
     29        if ( isset( $query->extra['l10n'] ) ) {
     30            wp_localize_script( 'editor-core', $query->extra['l10n'][0], $query->extra['l10n'][1] );
     31        }
    3032
    3133        wp_deregister_script( 'editor' );
Note: See TracChangeset for help on using the changeset viewer.