diff --git a/wp-includes/template.php b/wp-includes/template.php index cc15eedb48..d449be4f53 100644 --- a/wp-includes/template.php +++ b/wp-includes/template.php @@ -53,10 +53,13 @@ function get_query_template( $type, $templates = array() ) { * 'embed', home', 'frontpage', 'page', 'paged', 'search', 'single', 'singular', and 'attachment'. * * @since 1.5.0 + * @since 4.8.0 The `$type` and `$templates` parameters were added. * - * @param string $template Path to the template. See locate_template(). + * @param string $template Path to the template. See locate_template(). + * @param string $type Filename without extension. + * @param array $templates A list of template candidates, in descending order of priority. */ - return apply_filters( "{$type}_template", $template ); + return apply_filters( "{$type}_template", $template, $type, $templates ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 983b59c084..d59a9fec4f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40056'; +$wp_version = '4.8-alpha-40057'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.