Skip to content

Commit f13d094

Browse files
committed
Docs: Correct the syntax of the $post_states parameter in some filters.
Follow up to r60993. See #51403 git-svn-id: https://develop.svn.wordpress.org/trunk@61261 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4198141 commit f13d094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-admin/includes/template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,7 +2272,7 @@ function _post_states( $post, $display = true ) {
22722272
*
22732273
* @param string $post_states_html All relevant post states combined into an HTML string for display.
22742274
* E.g. `&mdash; <span class='post-state'>Draft, </span><span class='post-state'>Sticky</span>`.
2275-
* @param string<string, string> $post_states A mapping of post state slugs to translated post state labels.
2275+
* @param array<string, string> $post_states A mapping of post state slugs to translated post state labels.
22762276
* E.g. `array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... )`.
22772277
* @param WP_Post $post The current post object.
22782278
*/
@@ -2355,7 +2355,7 @@ function get_post_states( $post ) {
23552355
* are used within the filter, their existence should be checked
23562356
* with `function_exists()` before being used.
23572357
*
2358-
* @param string<string, string> $post_states A mapping of post state slugs to translated post state labels.
2358+
* @param array<string, string> $post_states A mapping of post state slugs to translated post state labels.
23592359
* E.g. `array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... )`.
23602360
* @param WP_Post $post The current post object.
23612361
*/

0 commit comments

Comments
 (0)