WordPress.org

Make WordPress Core

Ticket #51081: 51081.2.diff

File 51081.2.diff, 613 bytes (added by audrasjb, 3 months ago)

Docs: Properly document 5.5 changes in display_post_states filter doc block

  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index ad87a89521..5eca225551 100644
    a b function get_post_states( $post ) { 
    22232223         *
    22242224         * @since 2.8.0
    22252225         * @since 3.6.0 Added the `$post` parameter.
     2226         * @since 5.5.0 Now also applied in customizer context. If any admin function is used,
     2227         *              their existence needs to be checked before.
    22262228         *
    22272229         * @param string[] $post_states An array of post display states.
    22282230         * @param WP_Post  $post        The current post object.