WordPress.org

Make WordPress Core

Ticket #39525: template.php.patch

File template.php.patch, 501 bytes (added by mschadegg, 4 years ago)

Patch with template candidates as second parameter.

  • wp-includes/template.php

     
    5555         * @since 1.5.0
    5656         *
    5757         * @param string $template Path to the template. See locate_template().
     58         * @param array $templates Template candidates
    5859         */
    59         return apply_filters( "{$type}_template", $template );
     60        return apply_filters( "{$type}_template", $template, $templates );
    6061}
    6162
    6263/**