Make WordPress Core

Ticket #49362: 49362.diff

File 49362.diff, 1.2 KB (added by mkaz, 4 years ago)

Diff to fix 49362, adds "filename" to inline docs instead of just "name"

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

    diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
    index a2a737df48..c4750b927a 100644
    a b function get_the_password_form( $post = 0 ) { 
    17301730 * Determines whether currently in a page template.
    17311731 *
    17321732 * This template tag allows you to determine if you are in a page template.
    1733  * You can optionally provide a template name or array of template names
     1733 * You can optionally provide a template filename or array of template names
    17341734 * and then the check will be specific to that template.
    17351735 *
    17361736 * For more information on this and similar theme functions, check out
    function get_the_password_form( $post = 0 ) { 
    17411741 * @since 4.2.0 The `$template` parameter was changed to also accept an array of page templates.
    17421742 * @since 4.7.0 Now works with any post type, not just pages.
    17431743 *
    1744  * @param string|array $template The specific template name or array of templates to match.
     1744 * @param string|array $template The specific template filename or array of templates to match.
    17451745 * @return bool True on success, false on failure.
    17461746 */
    17471747function is_page_template( $template = '' ) {