X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/7f1521bf193b382565eb753043c161f4cb3fcda7..c81aba3d563f7459dc79140e4c5be67bcf506b92:/wp-admin/network/themes.php diff --git a/wp-admin/network/themes.php b/wp-admin/network/themes.php index 2b77f188..958bd7e9 100644 --- a/wp-admin/network/themes.php +++ b/wp-admin/network/themes.php @@ -53,7 +53,7 @@ if ( $action ) { wp_safe_redirect( add_query_arg( 'error', 'none', $referer ) ); exit; } - foreach( (array) $themes as $theme ) + foreach ( (array) $themes as $theme ) $allowed_themes[ $theme ] = true; update_site_option( 'allowedthemes', $allowed_themes ); wp_safe_redirect( add_query_arg( 'enabled', count( $themes ), $referer ) ); @@ -65,7 +65,7 @@ if ( $action ) { wp_safe_redirect( add_query_arg( 'error', 'none', $referer ) ); exit; } - foreach( (array) $themes as $theme ) + foreach ( (array) $themes as $theme ) unset( $allowed_themes[ $theme ] ); update_site_option( 'allowedthemes', $allowed_themes ); wp_safe_redirect( add_query_arg( 'disabled', count( $themes ), $referer ) ); @@ -86,7 +86,7 @@ if ( $action ) { require_once(ABSPATH . 'wp-admin/admin-header.php'); echo '
'; - echo '

' . esc_html( $title ) . '

'; + echo '

' . esc_html( $title ) . '

'; $url = self_admin_url('update.php?action=update-selected-themes&themes=' . urlencode( join(',', $themes) )); $url = wp_nonce_url($url, 'bulk-update-themes'); @@ -150,11 +150,11 @@ if ( $action ) { ?>
-

+

-

+

@@ -182,9 +182,9 @@ if ( $action ) { wp_nonce_field( 'bulk-themes' ); if ( 1 == $themes_to_delete ) { - submit_button( __( 'Yes, Delete this theme' ), 'button', 'submit', false ); + submit_button( __( 'Yes, delete this theme' ), 'button', 'submit', false ); } else { - submit_button( __( 'Yes, Delete these themes' ), 'button', 'submit', false ); + submit_button( __( 'Yes, delete these themes' ), 'button', 'submit', false ); } ?> @@ -192,7 +192,7 @@ if ( $action ) { $referer = wp_get_referer(); ?>
- +

@@ -251,6 +251,12 @@ get_current_screen()->set_help_sidebar( '

' . __('Support Forums') . '

' ); +get_current_screen()->set_screen_reader_content( array( + 'heading_views' => __( 'Filter themes list' ), + 'heading_pagination' => __( 'Themes list navigation' ), + 'heading_list' => __( 'Themes list' ), +) ); + $title = __('Themes'); $parent_file = 'themes.php'; @@ -261,10 +267,10 @@ require_once(ABSPATH . 'wp-admin/admin-header.php'); ?>
-

' . __('Search results for “%s”') . '', esc_html( $s ) ); ?> -

+