Changeset 22084
- Timestamp:
- 09/29/2012 01:36:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/themes.php
r21198 r22084 177 177 } // Endif verify-delete 178 178 179 foreach ( $themes as $theme ) 180 $delete_result = delete_theme( $theme, esc_url( add_query_arg( array('verify-delete' => 1), $_SERVER['REQUEST_URI'] ) ) ); 179 foreach ( $themes as $theme ) { 180 $delete_result = delete_theme( $theme, esc_url( add_query_arg( array( 181 'verify-delete' => 1, 182 'action' => 'delete-selected', 183 'checked' => $_REQUEST['checked'], 184 '_wpnonce' => $_REQUEST['_wpnonce'] 185 ), network_admin_url( 'themes.php' ) ) ) ); 186 } 187 181 188 $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 182 wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) ); 189 wp_redirect( add_query_arg( array( 190 'deleted' => count( $themes ), 191 'paged' => $paged, 192 's' => $s 193 ), network_admin_url( 'themes.php' ) ) ); 183 194 exit; 184 195 break;
Note: See TracChangeset
for help on using the changeset viewer.