WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/22/2011 10:30:05 PM (10 years ago)
Author:
nacin
Message:

Code readability improvements. props niallkennedy, fixes #17166, #17182, #17231, #16474.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r17770 r17989  
    8080function get_stylesheet_uri() {
    8181    $stylesheet_dir_uri = get_stylesheet_directory_uri();
    82     $stylesheet_uri = $stylesheet_dir_uri . "/style.css";
     82    $stylesheet_uri = $stylesheet_dir_uri . '/style.css';
    8383    return apply_filters('stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri);
    8484}
     
    828828    $templates[] = "category-{$category->slug}.php";
    829829    $templates[] = "category-{$category->term_id}.php";
    830     $templates[] = "category.php";
     830    $templates[] = 'category.php';
    831831
    832832    return get_query_template( 'category', $templates );
     
    852852    $templates[] = "tag-{$tag->slug}.php";
    853853    $templates[] = "tag-{$tag->term_id}.php";
    854     $templates[] = "tag.php";
     854    $templates[] = 'tag.php';
    855855
    856856    return get_query_template( 'tag', $templates );
     
    882882    $templates[] = "taxonomy-$taxonomy-{$term->slug}.php";
    883883    $templates[] = "taxonomy-$taxonomy.php";
    884     $templates[] = "taxonomy.php";
     884    $templates[] = 'taxonomy.php';
    885885
    886886    return get_query_template( 'taxonomy', $templates );
     
    964964    if ( $id )
    965965        $templates[] = "page-$id.php";
    966     $templates[] = "page.php";
     966    $templates[] = 'page.php';
    967967
    968968    return get_query_template( 'page', $templates );
Note: See TracChangeset for help on using the changeset viewer.