WordPress.org

Make WordPress Core

Ticket #51081: 51081.3.diff

File 51081.3.diff, 648 bytes (added by garrett-eclipse, 3 months ago)

Updated verbiage; Capitalize Customizer, be extra clear indicate function_exists is the best way to check.

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

     
    22232223         *
    22242224         * @since 2.8.0
    22252225         * @since 3.6.0 Added the `$post` parameter.
     2226         * @since 5.5.0 Now also applied in the Customizer context. If any admin function is used within the filter,
     2227         *              their existence should be checked with `function_exists` before being used.
    22262228         *
    22272229         * @param string[] $post_states An array of post display states.
    22282230         * @param WP_Post  $post        The current post object.