Changeset 20162 for trunk/wp-includes/theme.php
- Timestamp:
- 03/08/2012 06:18:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r20161 r20162 526 526 * @since 1.5.0 527 527 * 528 * @param string $stylesheet_or_template The stylesheet or template name of the theme 528 * @param string $stylesheet_or_template Optional. The stylesheet or template name of the theme. 529 * Default is to leverage the main theme root. 530 * @param string $theme_root Optional. The theme root for which calculations will be based, preventing 531 * the need for a get_raw_theme_root() call. 529 532 * @return string Themes URI. 530 533 */ 531 function get_theme_root_uri( $stylesheet_or_template = false ) {534 function get_theme_root_uri( $stylesheet_or_template = false, $theme_root = false ) { 532 535 global $wp_theme_directories; 533 536 534 if ( $stylesheet_or_template && $theme_root = get_raw_theme_root( $stylesheet_or_template ) ) { 537 if ( $stylesheet_or_template && ! $theme_root ) 538 $theme_root = get_raw_theme_root( $stylesheet_or_template ); 539 540 if ( $stylesheet_or_template && $theme_root ) { 535 541 if ( in_array( $theme_root, (array) $wp_theme_directories ) ) { 536 542 // Absolute path. Make an educated guess. YMMV -- but note the filter below.
Note: See TracChangeset
for help on using the changeset viewer.