Themes: Clarify the `_doing_it_wrong()` message for post formats in `add_theme_support()`.

Follow-up to [49344], [49354], [49365].

See #51390.
Built from https://develop.svn.wordpress.org/trunk@49367


git-svn-id: http://core.svn.wordpress.org/trunk@49126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-10-29 00:08:06 +00:00
parent 99e83a11d0
commit bb0b36a905
2 changed files with 2 additions and 2 deletions

View File

@ -2525,7 +2525,7 @@ function add_theme_support( $feature, ...$args ) {
$args[0] = array_intersect( $args[0], array_keys( $post_formats ) );
} else {
_doing_it_wrong( "add_theme_support( 'post-formats' )", __( 'You need to pass an array of types.' ), '5.6.0' );
_doing_it_wrong( "add_theme_support( 'post-formats' )", __( 'You need to pass an array of post formats.' ), '5.6.0' );
return false;
}
break;

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-beta2-49365';
$wp_version = '5.6-beta2-49367';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.