Commit 98dbc89814 for wordpress.org
commit 98dbc898149447bf1cb79db300ff8614c62595b5
Author: John Blackbourn <johnbillion@git.wordpress.org>
Date: Tue Nov 18 10:57:29 2025 +0000
Docs: Correct the syntax of the `$post_states` parameter in some filters.
Follow up to r60993.
See #51403
Built from https://develop.svn.wordpress.org/trunk@61261
git-svn-id: http://core.svn.wordpress.org/trunk@60573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index d5537ede34..1c86a2a9d0 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -2272,7 +2272,7 @@ function _post_states( $post, $display = true ) {
*
* @param string $post_states_html All relevant post states combined into an HTML string for display.
* E.g. `— <span class='post-state'>Draft, </span><span class='post-state'>Sticky</span>`.
- * @param string<string, string> $post_states A mapping of post state slugs to translated post state labels.
+ * @param array<string, string> $post_states A mapping of post state slugs to translated post state labels.
* E.g. `array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... )`.
* @param WP_Post $post The current post object.
*/
@@ -2355,7 +2355,7 @@ function get_post_states( $post ) {
* are used within the filter, their existence should be checked
* with `function_exists()` before being used.
*
- * @param string<string, string> $post_states A mapping of post state slugs to translated post state labels.
+ * @param array<string, string> $post_states A mapping of post state slugs to translated post state labels.
* E.g. `array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... )`.
* @param WP_Post $post The current post object.
*/
diff --git a/wp-includes/version.php b/wp-includes/version.php
index f50d4c9f55..080cd1c98a 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.0-alpha-61258';
+$wp_version = '7.0-alpha-61261';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.