Ticket #14897: 14897.11.diff
File 14897.11.diff, 828 bytes (added by , 14 years ago) |
---|
-
wp-admin/network/themes.php
23 23 $allowed_themes = get_site_option( 'allowedthemes' ); 24 24 switch ( $action ) { 25 25 case 'network-enable': 26 $allowed_themes[ $_GET['theme'] ] = 1;26 $allowed_themes[ $_GET['theme'] ] = true; 27 27 update_site_option( 'allowedthemes', $allowed_themes ); 28 28 wp_redirect( wp_get_referer() ); // @todo add_query_arg for update message 29 29 exit; … … 41 41 exit; 42 42 } 43 43 foreach( (array) $themes as $theme ) 44 $allowed_themes[ $theme ] = 1;44 $allowed_themes[ $theme ] = true; 45 45 update_site_option( 'allowedthemes', $allowed_themes ); 46 46 break; 47 47 case 'network-disable-selected':