Changeset 34912 for trunk/src/wp-admin/network/themes.php
- Timestamp:
- 10/07/2015 05:11:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/themes.php
r34891 r34912 30 30 31 31 if ( $action ) { 32 $allowed_themes = get_ network_option( 'allowedthemes' );32 $allowed_themes = get_site_option( 'allowedthemes' ); 33 33 switch ( $action ) { 34 34 case 'enable': 35 35 check_admin_referer('enable-theme_' . $_GET['theme']); 36 36 $allowed_themes[ $_GET['theme'] ] = true; 37 update_ network_option( 'allowedthemes', $allowed_themes );37 update_site_option( 'allowedthemes', $allowed_themes ); 38 38 if ( false === strpos( $referer, '/network/themes.php' ) ) 39 39 wp_redirect( network_admin_url( 'themes.php?enabled=1' ) ); … … 44 44 check_admin_referer('disable-theme_' . $_GET['theme']); 45 45 unset( $allowed_themes[ $_GET['theme'] ] ); 46 update_ network_option( 'allowedthemes', $allowed_themes );46 update_site_option( 'allowedthemes', $allowed_themes ); 47 47 wp_safe_redirect( add_query_arg( 'disabled', '1', $referer ) ); 48 48 exit; … … 56 56 foreach ( (array) $themes as $theme ) 57 57 $allowed_themes[ $theme ] = true; 58 update_ network_option( 'allowedthemes', $allowed_themes );58 update_site_option( 'allowedthemes', $allowed_themes ); 59 59 wp_safe_redirect( add_query_arg( 'enabled', count( $themes ), $referer ) ); 60 60 exit; … … 68 68 foreach ( (array) $themes as $theme ) 69 69 unset( $allowed_themes[ $theme ] ); 70 update_ network_option( 'allowedthemes', $allowed_themes );70 update_site_option( 'allowedthemes', $allowed_themes ); 71 71 wp_safe_redirect( add_query_arg( 'disabled', count( $themes ), $referer ) ); 72 72 exit;
Note: See TracChangeset
for help on using the changeset viewer.