From 84419a51b83a25300229fac1534e8034158fc69f Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 14 Jul 2015 21:59:25 +0000 Subject: [PATCH] Update the descriptions for `get_front_page_template()` and `get_comments_popup_template()` to reference the correct dynamic hook names. Part props @birgire. Fixes #32989. See #32246. Built from https://develop.svn.wordpress.org/trunk@33272 git-svn-id: http://core.svn.wordpress.org/trunk@33244 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template.php | 8 +++++--- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-includes/template.php b/wp-includes/template.php index 6b851dda8b..b183c4273c 100644 --- a/wp-includes/template.php +++ b/wp-includes/template.php @@ -27,6 +27,7 @@ function get_query_template( $type, $templates = array() ) { $templates = array("{$type}.php"); $template = locate_template( $templates ); + /** * Filter the path of the queried template by type. * @@ -276,7 +277,7 @@ function get_home_template() { * Retrieve path of front-page template in current or parent template. * * Looks for 'front-page.php'. The template path is filterable via the - * 'front_page_template' hook. + * dynamic {@see '$type_template'} hook, e.g. 'frontpage_template'. * * @since 3.0.0 * @@ -447,7 +448,8 @@ function get_attachment_template() { * Checks for comment popup template in current template, if it exists or in the * parent template. * - * The template path is filterable via the 'comments_popup_template' hook. + * The template path is filterable via the dynamic {@see '$type_template'} hook, + * e.g. 'commentspopup_template'. * * @since 1.5.0 * @@ -458,7 +460,7 @@ function get_attachment_template() { function get_comments_popup_template() { $template = get_query_template( 'comments_popup', array( 'comments-popup.php' ) ); - // Backward compat code will be removed in a future release + // Backward compat code will be removed in a future release. if ('' == $template) $template = ABSPATH . WPINC . '/theme-compat/comments-popup.php'; diff --git a/wp-includes/version.php b/wp-includes/version.php index dc275b1b42..183fc3f9ff 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-beta2-33271'; +$wp_version = '4.3-beta2-33272'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.