From ee33a7b0193401bcd0a8bf358fb10b23cc1ddcc2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 31 Aug 2020 13:32:04 +0000 Subject: [PATCH] Docs: Add a `@since` note to the `display_post_states` filter to clarify that it is now also applied in the Customizer context. If any admin functions are used within the filter, their existence should be checked with `function_exists()` before being used. Follow-up to [47763], [48620]. Props audrasjb, garrett-eclipse, Howdy_McGee, dlh, khag7, SergeyBiryukov. Fixes #51081. Built from https://develop.svn.wordpress.org/trunk@48910 git-svn-id: http://core.svn.wordpress.org/trunk@48672 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index ad87a89521..e759042627 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2223,6 +2223,9 @@ function get_post_states( $post ) { * * @since 2.8.0 * @since 3.6.0 Added the `$post` parameter. + * @since 5.5.0 Also applied in the Customizer context. If any admin functions + * are used within the filter, their existence should be checked + * with `function_exists()` before being used. * * @param string[] $post_states An array of post display states. * @param WP_Post $post The current post object. diff --git a/wp-includes/version.php b/wp-includes/version.php index 5134411c19..2a26d7f092 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48909'; +$wp_version = '5.6-alpha-48910'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.