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

git-svn-id: https://develop.svn.wordpress.org/trunk@20018 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-02-28 19:59:53 +00:00
parent 981992f8fb
commit 75540de79c
1 changed files with 3 additions and 2 deletions

View File

@ -711,9 +711,10 @@ function get_theme_root_uri( $stylesheet_or_template = false ) {
* @since 3.1.0
*
* @param string $stylesheet_or_template The stylesheet or template name of the theme
* @param bool $skip_cache Optional. Whether to skip the cache. Defaults to false, meaning the cache is used.
* @return string Theme root
*/
function get_raw_theme_root( $stylesheet_or_template, $no_cache = false ) {
function get_raw_theme_root( $stylesheet_or_template, $skip_cache = false ) {
global $wp_theme_directories;
if ( count($wp_theme_directories) <= 1 )
@ -722,7 +723,7 @@ function get_raw_theme_root( $stylesheet_or_template, $no_cache = false ) {
$theme_root = false;
// If requesting the root for the current theme, consult options to avoid calling get_theme_roots()
if ( !$no_cache ) {
if ( ! $skip_cache ) {
if ( get_option('stylesheet') == $stylesheet_or_template )
$theme_root = get_option('stylesheet_root');
elseif ( get_option('template') == $stylesheet_or_template )