From fbb5c1f1f503b08933345fa3d9efef65c9bc9d56 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 8 Dec 2014 16:06:26 +0000 Subject: [PATCH] Improve the `doing_it_wrong()` text for `title-tag` theme support. Props ocean90 Fixes #18548 Built from https://develop.svn.wordpress.org/trunk@30787 git-svn-id: http://core.svn.wordpress.org/trunk@30777 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index d31dbf7f58..f8539e9f8f 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -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' ), 'wp_loaded' ), '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.' ), + 'title-tag', 'wp_loaded' ), '4.1' ); return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 7d8415ea4e..fa0d071d16 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30786'; +$wp_version = '4.1-beta2-30787'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.