Themes: Clarify the _doing_it_wrong()
message for post formats in add_theme_support()
.
Follow-up to [49344], [49354], [49365]. See #51390. git-svn-id: https://develop.svn.wordpress.org/trunk@49367 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
75bb139087
commit
cc5e183da9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user