mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-17 14:22:45 +00:00
Improve the doing_it_wrong() text for title-tag theme support.
Props ocean90 Fixes #18548 git-svn-id: https://develop.svn.wordpress.org/trunk@30787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0ae462657d
commit
28f8566630
@ -1615,7 +1615,9 @@ function add_theme_support( $feature ) {
|
||||
case 'title-tag' :
|
||||
// Can be called in functions.php but must happen before wp_loaded, i.e. not in header.php.
|
||||
if ( did_action( 'wp_loaded' ) ) {
|
||||
_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' );
|
||||
/* translators: 1: Theme support 2: hook name */
|
||||
_doing_it_wrong( "add_theme_support( 'title-tag' )", sprintf( __( 'Theme support for %1$s should be registered before the %2$s hook.' ),
|
||||
'<code>title-tag</code>', '<code>wp_loaded</code>' ), '4.1' );
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user