@@ 1360-1366 (lines=7) @@ | ||
1357 | ||
1358 | $current = $blog_id == get_current_blog_id(); |
|
1359 | ||
1360 | if ( $current ) { |
|
1361 | $allowed_themes[ $blog_id ] = get_option( 'allowedthemes' ); |
|
1362 | } else { |
|
1363 | switch_to_blog( $blog_id ); |
|
1364 | $allowed_themes[ $blog_id ] = get_option( 'allowedthemes' ); |
|
1365 | restore_current_blog(); |
|
1366 | } |
|
1367 | ||
1368 | // This is all super old MU back compat joy. |
|
1369 | // 'allowedthemes' keys things by stylesheet. 'allowed_themes' keyed things by name. |
|
@@ 1371-1377 (lines=7) @@ | ||
1368 | // This is all super old MU back compat joy. |
|
1369 | // 'allowedthemes' keys things by stylesheet. 'allowed_themes' keyed things by name. |
|
1370 | if ( false === $allowed_themes[ $blog_id ] ) { |
|
1371 | if ( $current ) { |
|
1372 | $allowed_themes[ $blog_id ] = get_option( 'allowed_themes' ); |
|
1373 | } else { |
|
1374 | switch_to_blog( $blog_id ); |
|
1375 | $allowed_themes[ $blog_id ] = get_option( 'allowed_themes' ); |
|
1376 | restore_current_blog(); |
|
1377 | } |
|
1378 | ||
1379 | if ( ! is_array( $allowed_themes[ $blog_id ] ) || empty( $allowed_themes[ $blog_id ] ) ) { |
|
1380 | $allowed_themes[ $blog_id ] = array(); |