Make WordPress Core

Ticket #22314: singular.php.1.diff

File singular.php.1.diff, 1.2 KB (added by chipbennett, 12 years ago)

Fixes get_singular_template() typo

  • template.php

     
    296296}
    297297
    298298/**
     299 * Retrieve path of singular template in current or parent template.
     300 *
     301 * @since 3.5.0
     302 *
     303 * @return string
     304 */
     305function get_singular_template() {
     306        return get_query_template( 'singular' );
     307}
     308
     309/**
    299310 * Retrieve path of attachment template in current or parent template.
    300311 *
    301312 * The attachment path first checks if the first part of the mime type exists.
  • template-loader.php

     
    2929                remove_filter('the_content', 'prepend_attachment');
    3030        elseif ( is_single()         && $template = get_single_template()         ) :
    3131        elseif ( is_page()           && $template = get_page_template()           ) :
     32        elseif ( is_singular()       && $template = get_singular_template()       ) :
    3233        elseif ( is_category()       && $template = get_category_template()       ) :
    3334        elseif ( is_tag()            && $template = get_tag_template()            ) :
    3435        elseif ( is_author()         && $template = get_author_template()         ) :