Ticket #21270: 21270.2.diff
File 21270.2.diff, 745 bytes (added by , 13 years ago) |
---|
-
wp-admin/network/site-themes.php
58 58 $is_main_site = is_main_site( $id ); 59 59 60 60 if ( $action ) { 61 switch_to_blog( $id ); 62 $allowed_themes = get_option( 'allowedthemes' ); 61 $allowed_themes = get_blog_option( $id, 'allowedthemes' ); 63 62 64 63 switch ( $action ) { 65 64 case 'enable': … … 110 109 break; 111 110 } 112 111 113 update_option( 'allowedthemes', $allowed_themes ); 114 restore_current_blog(); 112 update_blog_option( $id, 'allowedthemes', $allowed_themes ); 115 113 116 114 wp_safe_redirect( add_query_arg( array( 'id' => $id, $action => $n ), $referer ) ); 117 115 exit;