Changeset 19577 for trunk/wp-admin/network/themes.php
- Timestamp:
- 12/08/2011 11:02:33 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/network/themes.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/themes.php
r19514 r19577 35 35 36 36 if ( $action ) { 37 $allowed_themes = get_site_option( 'allowedthemes' ); 37 $allowed_themes = get_site_option( 'allowedthemes' ); 38 38 switch ( $action ) { 39 39 case 'enable': … … 129 129 unset( $themes[$key] ); 130 130 } else { 131 $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) ); 131 $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) ); 132 132 $theme_info[ $theme ] = $data; 133 133 } 134 134 } 135 135 136 136 if ( empty( $themes ) ) { 137 137 wp_redirect( add_query_arg( 'error', 'main', $referer ) ); … … 191 191 foreach ( $themes as $theme ) 192 192 $delete_result = delete_theme( $theme, esc_url( add_query_arg( array('verify-delete' => 1), $_SERVER['REQUEST_URI'] ) ) ); 193 $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 193 $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 194 194 wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) ); 195 195 exit; … … 229 229 <?php screen_icon('themes'); ?> 230 230 <h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } 231 if ( $s ) 232 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 231 if ( $s ) 232 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 233 233 </h2> 234 234
Note: See TracChangeset
for help on using the changeset viewer.