Make WordPress Core

Changeset 30787


Ignore:
Timestamp:
12/08/2014 04:05:34 PM (12 years ago)
Author:
johnbillion
Message:

Improve the doing_it_wrong() text for title-tag theme support.

Props ocean90
Fixes #18548

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r30672 r30787  
    16161616                        // Can be called in functions.php but must happen before wp_loaded, i.e. not in header.php.
    16171617                        if ( did_action( 'wp_loaded' ) ) {
    1618                                 _doing_it_wrong( "add_theme_support( 'title-tag' )", sprintf( _x( 'You need to add theme support before %s.', 'action name' ), '<code>wp_loaded</code>' ), '4.1.0' );
     1618                                /* translators: 1: Theme support 2: hook name */
     1619                                _doing_it_wrong( "add_theme_support( 'title-tag' )", sprintf( __( 'Theme support for %1$s should be registered before the %2$s hook.' ),
     1620                                        '<code>title-tag</code>', '<code>wp_loaded</code>' ), '4.1' );
    16191621
    16201622                                return false;
Note: See TracChangeset for help on using the changeset viewer.