Ticket #22314: singular.php.diff
File singular.php.diff, 1.2 KB (added by , 12 years ago) |
---|
-
template.php
296 296 } 297 297 298 298 /** 299 * Retrieve path of singular template in current or parent template. 300 * 301 * @since 3.5.0 302 * 303 * @return string 304 */ 305 function get_singlular_template() { 306 return get_query_template( 'singular' ); 307 } 308 309 /** 299 310 * Retrieve path of attachment template in current or parent template. 300 311 * 301 312 * The attachment path first checks if the first part of the mime type exists. -
template-loader.php
29 29 remove_filter('the_content', 'prepend_attachment'); 30 30 elseif ( is_single() && $template = get_single_template() ) : 31 31 elseif ( is_page() && $template = get_page_template() ) : 32 elseif ( is_singular() && $template = get_singular_template() ) : 32 33 elseif ( is_category() && $template = get_category_template() ) : 33 34 elseif ( is_tag() && $template = get_tag_template() ) : 34 35 elseif ( is_author() && $template = get_author_template() ) :