Make WordPress Core

Changeset 33272


Ignore:
Timestamp:
07/14/2015 09:58:16 PM (10 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/template.php

    r33239 r33272  
    2828
    2929    $template = locate_template( $templates );
     30
    3031    /**
    3132     * Filter the path of the queried template by type.
     
    277278 *
    278279 * Looks for 'front-page.php'. The template path is filterable via the
    279  * 'front_page_template' hook.
     280 * dynamic {@see '$type_template'} hook, e.g. 'frontpage_template'.
    280281 *
    281282 * @since 3.0.0
     
    448449 * parent template.
    449450 *
    450  * The template path is filterable via the 'comments_popup_template' hook.
     451 * The template path is filterable via the dynamic {@see '$type_template'} hook,
     452 * e.g. 'commentspopup_template'.
    451453 *
    452454 * @since 1.5.0
     
    459461    $template = get_query_template( 'comments_popup', array( 'comments-popup.php' ) );
    460462
    461     // Backward compat code will be removed in a future release
     463    // Backward compat code will be removed in a future release.
    462464    if ('' == $template)
    463465        $template = ABSPATH . WPINC . '/theme-compat/comments-popup.php';
Note: See TracChangeset for help on using the changeset viewer.