Ticket #37803: 37803.patch
| File 37803.patch, 1.2 KB (added by , 10 years ago) |
|---|
-
wp-includes/functions.wp-scripts.php
39 39 } 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>', 44 45 '<code>admin_enqueue_scripts</code>', … … 224 225 ); 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; 231 236 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)