# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: C:\wamp64\www\wordpress-svn\trunk\src
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: wp-includes/theme.php
--- wp-includes/theme.php Base (BASE)
+++ wp-includes/theme.php Locally Modified (Based On LOCAL)
@@ -370,7 +370,7 @@
 function get_theme_roots() {
 	global $wp_theme_directories;
 
-	if ( count( $wp_theme_directories ) <= 1 ) {
+	if ( is_array( $wp_theme_directories ) && count( $wp_theme_directories ) <= 1 ) {
 		return '/themes';
 	}
 
