Changeset 17849 for trunk/wp-admin/network/themes.php
- Timestamp:
- 05/10/2011 07:18:16 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/network/themes.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/themes.php
r17800 r17849 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': … … 101 101 unset( $themes[$key] ); 102 102 } else { 103 $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) ); 103 $files_to_delete = array_merge( $files_to_delete, list_files( WP_CONTENT_DIR . "/themes/$theme" ) ); 104 104 $theme_info[ $theme ] = $data; 105 105 } 106 106 } 107 107 108 108 if ( empty( $themes ) ) { 109 109 wp_redirect( add_query_arg( 'error', 'main', $referer ) ); … … 163 163 foreach ( $themes as $theme ) 164 164 $delete_result = delete_theme( $theme, esc_url( add_query_arg( array('verify-delete' => 1), $_SERVER['REQUEST_URI'] ) ) ); 165 $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 165 $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 166 166 wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) ); 167 167 exit; … … 200 200 <div class="wrap"> 201 201 <?php screen_icon('themes'); ?> 202 <h2><?php 203 echo esc_html( $title ); 204 if ( current_user_can('install_themes') ) { 205 favorite_actions( $current_screen ); 206 } 207 if ( $s ) 208 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 202 <h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } 203 if ( $s ) 204 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 209 205 </h2> 210 206
Note: See TracChangeset
for help on using the changeset viewer.