X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..784f914b1e4b1c62d6657e86397c2e83bcee4295:/wp-admin/network/themes.php diff --git a/wp-admin/network/themes.php b/wp-admin/network/themes.php index 958bd7e9..fbc2aa03 100644 --- a/wp-admin/network/themes.php +++ b/wp-admin/network/themes.php @@ -116,27 +116,9 @@ if ( $action ) { exit; } - $files_to_delete = $theme_info = array(); - $theme_translations = wp_get_installed_translations( 'themes' ); + $theme_info = array(); foreach ( $themes as $key => $theme ) { $theme_info[ $theme ] = wp_get_theme( $theme ); - - // Locate all the files in that folder. - $files = list_files( $theme_info[ $theme ]->get_stylesheet_directory() ); - if ( $files ) { - $files_to_delete = array_merge( $files_to_delete, $files ); - } - - // Add translation files. - $theme_slug = $theme_info[ $theme ]->get_stylesheet(); - if ( ! empty( $theme_translations[ $theme_slug ] ) ) { - $translations = $theme_translations[ $theme_slug ]; - - foreach ( $translations as $translation => $data ) { - $files_to_delete[] = $theme_slug . '-' . $translation . '.po'; - $files_to_delete[] = $theme_slug . '-' . $translation . '.mo'; - } - } } include(ABSPATH . 'wp-admin/update.php'); @@ -161,8 +143,12 @@ if ( $action ) { @@ -194,17 +180,6 @@ if ( $action ) {
- -

-

' . __('Search results for “%s”') . '', esc_html( $s ) ); ?> +if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { + /* translators: %s: search keywords */ + printf( '' . __( 'Search results for “%s”' ) . '', esc_html( $s ) ); +} +?>

views(); if ( 'broken' == $status ) - echo '

' . __('The following themes are installed but incomplete. Themes must have a stylesheet and a template.') . '

'; + echo '

' . __( 'The following themes are installed but incomplete.' ) . '

'; ?>