From bb0b36a905605bd620c4b266a823405cde325d4a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 29 Oct 2020 00:08:06 +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. Built from https://develop.svn.wordpress.org/trunk@49367 git-svn-id: http://core.svn.wordpress.org/trunk@49126 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 7faf3844e8..304f27fdb6 100644 --- a/wp-includes/theme.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 9ae4190634..02a84c2854 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.