Ticket #32989: 32989.diff
File 32989.diff, 1.3 KB (added by , 10 years ago) |
---|
-
src/wp-includes/template.php
27 27 $templates = array("{$type}.php"); 28 28 29 29 $template = locate_template( $templates ); 30 30 31 /** 31 32 * Filter the path of the queried template by type. 32 33 * … … 276 277 * Retrieve path of front-page template in current or parent template. 277 278 * 278 279 * 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'. 280 281 * 281 282 * @since 3.0.0 282 283 * … … 447 448 * Checks for comment popup template in current template, if it exists or in the 448 449 * parent template. 449 450 * 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'. 451 453 * 452 454 * @since 1.5.0 453 455 * … … 458 460 function get_comments_popup_template() { 459 461 $template = get_query_template( 'comments_popup', array( 'comments-popup.php' ) ); 460 462 461 // Backward compat code will be removed in a future release 463 // Backward compat code will be removed in a future release. 462 464 if ('' == $template) 463 465 $template = ABSPATH . WPINC . '/theme-compat/comments-popup.php'; 464 466