X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/d3947bc013df7edd54b46deed8230d2eeafc5ecb..refs/tags/wordpress-4.6.1-scripts:/wp-admin/theme-install.php diff --git a/wp-admin/theme-install.php b/wp-admin/theme-install.php index 97f42ce3..6b384655 100644 --- a/wp-admin/theme-install.php +++ b/wp-admin/theme-install.php @@ -13,7 +13,7 @@ require( ABSPATH . 'wp-admin/includes/theme-install.php' ); wp_reset_vars( array( 'tab' ) ); if ( ! current_user_can('install_themes') ) - wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) ); + wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); if ( is_multisite() && ! is_network_admin() ) { wp_redirect( network_admin_url( 'theme-install.php' ) ); @@ -58,6 +58,7 @@ wp_localize_script( 'theme', '_wpThemeSettings', array( ) ); wp_enqueue_script( 'theme' ); +wp_enqueue_script( 'updates' ); if ( $tab ) { /** @@ -75,7 +76,7 @@ if ( $tab ) { $help_overview = '

' . sprintf( /* translators: %s: Theme Directory URL */ - __( 'You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the WordPress.org Theme Directory. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.' ), + __( 'You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the WordPress Theme Directory. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.' ), __( 'https://wordpress.org/themes/' ) ) . '

' . '

' . __( 'You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter.' ) . ' ' . __( 'The search results will be updated as you type.' ) . '

' . @@ -116,10 +117,9 @@ include(ABSPATH . 'wp-admin/admin-header.php'); echo esc_html( $title ); /** - * Filter the tabs shown on the Add Themes screen. + * Filters the tabs shown on the Add Themes screen. * - * This filter is for backwards compatibility only, for the suppression - * of the upload tab. + * This filter is for backward compatibility only, for the suppression of the upload tab. * * @since 2.8.0 * @@ -127,18 +127,20 @@ include(ABSPATH . 'wp-admin/admin-header.php'); */ $tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) ); if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_themes' ) ) { - echo ' ' . __( 'Upload Theme' ) . ''; - echo ' ' . _x( 'Browse', 'themes' ) . ''; + echo ' '; } ?> +
+

+
-

+

-
+
@@ -202,7 +204,7 @@ include(ABSPATH . 'wp-admin/admin-header.php');
-

+

@@ -236,68 +238,100 @@ if ( $tab ) {
<# } #> -
+
+ +

{{ data.name }}

- - + <# if ( data.installed ) { #> + + <# if ( data.activate_url ) { #> + + <# } #> + <# if ( data.customize_url ) { #> + + <# } else { #> + + <# } #> + <# } else { #> + + + + <# } #>
<# if ( data.installed ) { #> -
+

<# } #>