diff --git "a/C:\\Users\\flies\\AppData\\Local\\Temp\\TortoiseGit\\cla7503.tmp\\class-wp-theme-2878bff-left.php" "b/E:\\WWW\\zoa-regional\\wp-includes\\class-wp-theme.php"
index b0115ae..06d9e73 100644
--- "a/C:\\Users\\flies\\AppData\\Local\\Temp\\TortoiseGit\\cla7503.tmp\\class-wp-theme-2878bff-left.php"
+++ "b/E:\\WWW\\zoa-regional\\wp-includes\\class-wp-theme.php"
@@ -1104,14 +1104,7 @@ final class WP_Theme implements ArrayAccess {
 	 * @return array Array of stylesheet names.
 	 */
 	public static function get_allowed( $blog_id = null ) {
-		/**
-		 * Filter the array of themes allowed on the site or network.
-		 *
-		 * @since MU
-		 *
-		 * @param array $allowed_themes An array of theme stylesheet names.
-		 */
-		$network = (array) apply_filters( 'allowed_themes', self::get_allowed_on_network() );
+		$network = self::get_allowed_on_network();
 		return $network + self::get_allowed_on_site( $blog_id );
 	}
 
@@ -1125,8 +1118,18 @@ final class WP_Theme implements ArrayAccess {
 	 */
 	public static function get_allowed_on_network() {
 		static $allowed_themes;
-		if ( ! isset( $allowed_themes ) )
-			$allowed_themes = (array) get_site_option( 'allowedthemes' );
+		if ( ! isset( $allowed_themes ) ) {
+            $allowed_themes = (array) get_site_option( 'allowedthemes' );
+
+            /**
+             * Filter the array of themes allowed on the site or network.
+             *
+             * @since MU
+             *
+             * @param array $allowed_themes An array of theme stylesheet names.
+             */
+            $allowed_themes = apply_filters( 'allowed_themes', $allowed_themes );
+        }
 		return $allowed_themes;
 	}
 
