Changeset 16120
- Timestamp:
- 10/31/2010 06:20:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/edit.php
r16061 r16120 301 301 break; 302 302 303 // Themes304 case 'updatethemes':305 if ( ! current_user_can( 'manage_network_themes' ) )306 wp_die( __( 'You do not have permission to access this page.' ) );307 308 if ( is_array( $_POST['theme'] ) ) {309 $themes = get_themes();310 reset( $themes );311 $allowed_themes = array();312 foreach ( (array) $themes as $key => $theme ) {313 if ( $_POST['theme'][ esc_html( $theme['Stylesheet'] ) ] == 'enabled' )314 $allowed_themes[ esc_html( $theme['Stylesheet'] ) ] = true;315 }316 update_site_option( 'allowedthemes', $allowed_themes );317 }318 wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'themes' ), wp_get_referer() ) );319 exit();320 break;321 322 303 // Common 323 304 case 'confirm':
Note: See TracChangeset
for help on using the changeset viewer.