@@ 1806-1809 (lines=4) @@ | ||
1803 | if ( false === $allowedthemes && is_array( $allowed_themes ) && $allowed_themes ) { |
|
1804 | $converted = array(); |
|
1805 | $themes = wp_get_themes(); |
|
1806 | foreach ( $themes as $stylesheet => $theme_data ) { |
|
1807 | if ( isset( $allowed_themes[ $theme_data->get('Name') ] ) ) |
|
1808 | $converted[ $stylesheet ] = true; |
|
1809 | } |
|
1810 | update_site_option( 'allowedthemes', $converted ); |
|
1811 | delete_site_option( 'allowed_themes' ); |
|
1812 | } |
@@ 1309-1312 (lines=4) @@ | ||
1306 | } else { |
|
1307 | $converted = array(); |
|
1308 | $themes = wp_get_themes(); |
|
1309 | foreach ( $themes as $stylesheet => $theme_data ) { |
|
1310 | if ( isset( $allowed_themes[ $blog_id ][ $theme_data->get('Name') ] ) ) |
|
1311 | $converted[ $stylesheet ] = true; |
|
1312 | } |
|
1313 | $allowed_themes[ $blog_id ] = $converted; |
|
1314 | } |
|
1315 | // Set the option so we never have to go through this pain again. |