mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Fix PHP notice
git-svn-id: https://develop.svn.wordpress.org/trunk@13908 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -648,7 +648,7 @@ function get_theme_root( $stylesheet_or_template = false ) {
|
||||
function get_theme_root_uri( $stylesheet_or_template = false ) {
|
||||
$theme_roots = get_theme_roots();
|
||||
|
||||
if ( $theme_roots[$stylesheet_or_template] )
|
||||
if ( isset( $theme_roots[$stylesheet_or_template] ) && $theme_roots[$stylesheet_or_template] )
|
||||
$theme_root_uri = content_url( $theme_roots[$stylesheet_or_template] );
|
||||
else
|
||||
$theme_root_uri = content_url( 'themes' );
|
||||
|
||||
Reference in New Issue
Block a user