@@ 1812-1815 (lines=4) @@ | ||
1809 | if ( false === $allowedthemes && is_array( $allowed_themes ) && $allowed_themes ) { |
|
1810 | $converted = array(); |
|
1811 | $themes = wp_get_themes(); |
|
1812 | foreach ( $themes as $stylesheet => $theme_data ) { |
|
1813 | if ( isset( $allowed_themes[ $theme_data->get('Name') ] ) ) |
|
1814 | $converted[ $stylesheet ] = true; |
|
1815 | } |
|
1816 | update_site_option( 'allowedthemes', $converted ); |
|
1817 | delete_site_option( 'allowed_themes' ); |
|
1818 | } |
@@ 1384-1387 (lines=4) @@ | ||
1381 | } else { |
|
1382 | $converted = array(); |
|
1383 | $themes = wp_get_themes(); |
|
1384 | foreach ( $themes as $stylesheet => $theme_data ) { |
|
1385 | if ( isset( $allowed_themes[ $blog_id ][ $theme_data->get('Name') ] ) ) |
|
1386 | $converted[ $stylesheet ] = true; |
|
1387 | } |
|
1388 | $allowed_themes[ $blog_id ] = $converted; |
|
1389 | } |
|
1390 | // Set the option so we never have to go through this pain again. |