Make WordPress Core

Changeset 20018


Ignore:
Timestamp:
02/28/2012 07:59:53 PM (13 years ago)
Author:
nacin
Message:

Clarify second argument for get_raw_theme_root() as the multiple negatives can get confusing. see #20103.

File:
1 edited

Legend:

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

    r20016 r20018  
    712712 *
    713713 * @param string $stylesheet_or_template The stylesheet or template name of the theme
     714 * @param bool $skip_cache Optional. Whether to skip the cache. Defaults to false, meaning the cache is used.
    714715 * @return string Theme root
    715716 */
    716 function get_raw_theme_root( $stylesheet_or_template, $no_cache = false ) {
     717function get_raw_theme_root( $stylesheet_or_template, $skip_cache = false ) {
    717718    global $wp_theme_directories;
    718719
     
    723724
    724725    // If requesting the root for the current theme, consult options to avoid calling get_theme_roots()
    725     if ( !$no_cache ) {
     726    if ( ! $skip_cache ) {
    726727        if ( get_option('stylesheet') == $stylesheet_or_template )
    727728            $theme_root = get_option('stylesheet_root');
Note: See TracChangeset for help on using the changeset viewer.