mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
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:
parent
99e83a11d0
commit
bb0b36a905
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user