Changeset 43859 for branches/5.0/src/wp-includes/functions.wp-scripts.php
- Timestamp:
- 11/01/2018 01:50:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-includes/functions.wp-scripts.php
r43827 r43859 194 194 195 195 /** 196 * Registertranslated strings for a script.196 * Sets translated strings for a script. 197 197 * 198 198 * Works only if the script has already been added. 199 199 * 200 200 * @see WP_Scripts::set_translations() 201 * @link https://core.trac.wordpress.org/ticket/45103202 201 * @global WP_Scripts $wp_scripts The WP_Scripts object for printing scripts. 203 202 * … … 215 214 _wp_scripts_maybe_doing_it_wrong( __FUNCTION__ ); 216 215 return false; 217 }218 219 if ( ! wp_script_is( $handle, 'enqueued' ) ) {220 _doing_it_wrong( __FUNCTION__, __( 'Script translations may only be set if the script is enqueued.' ), '5.0.0' );221 216 } 222 217
Note: See TracChangeset
for help on using the changeset viewer.