WordPress.org

Make WordPress Core

Ticket #39525: template.php.2.patch

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

Type as second parameter and template candidates as third parameter.

  • wp-includes/template.php

     
    5555         * @since 1.5.0
    5656         *
    5757         * @param string $template Path to the template. See locate_template().
     58         * @param string $type Filename without extension.
     59         * @param array $templates Template candidates.
    5860         */
    59         return apply_filters( "{$type}_template", $template );
     61        return apply_filters( "{$type}_template", $template, $type, $templates );
    6062}
    6163
    6264/**