WordPress.org

Make WordPress Core

Ticket #32989: 32989.diff

File 32989.diff, 1.3 KB (added by DrewAPicture, 5 years ago)
  • src/wp-includes/template.php

     
    2727                $templates = array("{$type}.php");
    2828
    2929        $template = locate_template( $templates );
     30
    3031        /**
    3132         * Filter the path of the queried template by type.
    3233         *
     
    276277 * Retrieve path of front-page template in current or parent template.
    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
    282283 *
     
    447448 * Checks for comment popup template in current template, if it exists or in the
    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
    453455 *
     
    458460function get_comments_popup_template() {
    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';
    464466