Changeset 38345
- Timestamp:
- 08/23/2016 11:52:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.wp-scripts.php
r37985 r38345 40 40 41 41 _doing_it_wrong( $function, sprintf( 42 /* translators: 1: wp_enqueue_scripts, 2: admin_enqueue_scripts, 3: login_enqueue_scripts */ 42 43 __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ), 43 44 '<code>wp_enqueue_scripts</code>', … … 225 226 226 227 if ( in_array( $handle, $no ) ) { 227 $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ), 228 "<code>$handle</code>", '<code>wp_enqueue_scripts</code>' ); 228 $message = sprintf( 229 /* translators: 1: script name, 2: wp_enqueue_scripts */ 230 __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ), 231 "<code>$handle</code>", 232 '<code>wp_enqueue_scripts</code>' 233 ); 229 234 _doing_it_wrong( __FUNCTION__, $message, '3.6.0' ); 230 235 return;
Note: See TracChangeset
for help on using the changeset viewer.