From cc5e183da982d569c10def8b81ff1879ce8f8a6f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 29 Oct 2020 00:07:01 +0000 Subject: [PATCH] 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 --- src/wp-includes/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 7faf3844e8..304f27fdb6 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -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;