File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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. `— <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 */
You can’t perform that action at this time.
0 commit comments