@@ 1767-1770 (lines=4) @@ | ||
1764 | if ( false === $allowedthemes && is_array( $allowed_themes ) && $allowed_themes ) { |
|
1765 | $converted = array(); |
|
1766 | $themes = wp_get_themes(); |
|
1767 | foreach ( $themes as $stylesheet => $theme_data ) { |
|
1768 | if ( isset( $allowed_themes[ $theme_data->get('Name') ] ) ) |
|
1769 | $converted[ $stylesheet ] = true; |
|
1770 | } |
|
1771 | update_site_option( 'allowedthemes', $converted ); |
|
1772 | delete_site_option( 'allowed_themes' ); |
|
1773 | } |
@@ 1294-1297 (lines=4) @@ | ||
1291 | } else { |
|
1292 | $converted = array(); |
|
1293 | $themes = wp_get_themes(); |
|
1294 | foreach ( $themes as $stylesheet => $theme_data ) { |
|
1295 | if ( isset( $allowed_themes[ $blog_id ][ $theme_data->get('Name') ] ) ) |
|
1296 | $converted[ $stylesheet ] = true; |
|
1297 | } |
|
1298 | $allowed_themes[ $blog_id ] = $converted; |
|
1299 | } |
|
1300 | // Set the option so we never have to go through this pain again. |