X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..3d39054f012aefe514b3f5509e32f09fc4feda44:/wp-admin/themes.php diff --git a/wp-admin/themes.php b/wp-admin/themes.php index bf65884f..c601cd55 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -12,7 +12,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'switch_themes' ) && ! current_user_can( 'edit_theme_options' ) ) { wp_die( '

' . __( 'Cheatin’ uh?' ) . '

' . - '

' . __( 'You are not allowed to edit theme options on this site.' ) . '

', + '

' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '

', 403 ); } @@ -40,7 +40,7 @@ if ( current_user_can( 'switch_themes' ) && isset($_GET['action'] ) ) { if ( ! current_user_can( 'delete_themes' ) ) { wp_die( '

' . __( 'Cheatin’ uh?' ) . '

' . - '

' . __( 'You are not allowed to delete this item.' ) . '

', + '

' . __( 'Sorry, you are not allowed to delete this item.' ) . '

', 403 ); } @@ -89,7 +89,7 @@ if ( current_user_can( 'install_themes' ) ) { if ( is_multisite() ) { $help_install = '

' . __('Installing themes on Multisite can only be done from the Network Admin section.') . '

'; } else { - $help_install = '

' . sprintf( __('If you would like to see more themes to choose from, click on the “Add New” button and you will be able to browse or search for additional themes from the WordPress.org Theme Directory. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!'), 'https://wordpress.org/themes/' ) . '

'; + $help_install = '

' . sprintf( __('If you would like to see more themes to choose from, click on the “Add New” button and you will be able to browse or search for additional themes from the WordPress Theme Directory. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!'), 'https://wordpress.org/themes/' ) . '

'; } get_current_screen()->add_help_tab( array( @@ -145,6 +145,7 @@ wp_localize_script( 'theme', '_wpThemeSettings', array( add_thickbox(); wp_enqueue_script( 'theme' ); +wp_enqueue_script( 'updates' ); wp_enqueue_script( 'customize-loader' ); require_once( ABSPATH . 'wp-admin/admin-header.php' ); @@ -162,9 +163,9 @@ if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?>

-

Visit site' ), home_url( '/' ) ); ?>

+

-

Visit site' ), home_url( '/' ) ); ?>

@@ -229,7 +230,7 @@ if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() ) ?>
-
+
+ + +
+

Update now' ); ?>

+
+ +
@@ -269,20 +277,19 @@ foreach ( $themes as $theme ) : - + +
- - -
-
-
@@ -296,7 +303,7 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_

-

+

<# } #> + + <# if ( data.hasUpdate ) { #> +

Update now' ); ?>

+ <# } #> + -
+
+ +
<# if ( data.active ) { #>

Active: %s' ), '{{{ data.name }}}' ); ?>

@@ -384,32 +401,30 @@ $can_install = current_user_can( 'install_themes' ); <# } #>
- - <# if ( data.active ) { #> - <# if ( data.actions.customize ) { #> - + <# if ( data.active ) { #> + <# if ( data.actions.customize ) { #> + + <# } #> + <# } else { #> + + + <# } #> - <# } else { #> - - - <# } #> -
- - <# if ( data.hasUpdate ) { #> -
- <# } #> -