WordPress.org

Make WordPress Core

Ticket #37803: 37803.patch

File 37803.patch, 1.2 KB (added by ramiy, 4 years ago)
  • wp-includes/functions.wp-scripts.php

     
    3939        }
    4040
    4141        _doing_it_wrong( $function, sprintf(
     42                /* translators: 1: wp_enqueue_scripts 2: admin_enqueue_scripts 3: login_enqueue_scripts */
    4243                __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
    4344                '<code>wp_enqueue_scripts</code>',
    4445                '<code>admin_enqueue_scripts</code>',
     
    224225                );
    225226
    226227                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                        );
    229234                        _doing_it_wrong( __FUNCTION__, $message, '3.6.0' );
    230235                        return;
    231236                }