Changeset 51154 for trunk/src/wp-includes/functions.wp-scripts.php
- Timestamp:
- 06/15/2021 03:21:50 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r50393 r51154 305 305 306 306 if ( in_array( $handle, $not_allowed, true ) ) { 307 $message = sprintf( 308 /* translators: 1: Script name, 2: wp_enqueue_scripts */ 309 __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ), 310 "<code>$handle</code>", 311 '<code>wp_enqueue_scripts</code>' 307 _doing_it_wrong( 308 __FUNCTION__, 309 sprintf( 310 /* translators: 1: Script name, 2: wp_enqueue_scripts */ 311 __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ), 312 "<code>$handle</code>", 313 '<code>wp_enqueue_scripts</code>' 314 ), 315 '3.6.0' 312 316 ); 313 _doing_it_wrong( __FUNCTION__, $message, '3.6.0' );314 317 return; 315 318 }
Note: See TracChangeset
for help on using the changeset viewer.