]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/update-core.php
WordPress 4.6.3
[autoinstalls/wordpress.git] / wp-admin / update-core.php
index 38c30d4de6b57f7b6e1b0e46ed1aee0d3ba53bdb..e123463bb0caa33695a80f855f4f9f56a08a8c92 100644 (file)
@@ -20,7 +20,7 @@ if ( is_multisite() && ! is_network_admin() ) {
 }
 
 if ( ! current_user_can( 'update_core' ) && ! current_user_can( 'update_themes' ) && ! current_user_can( 'update_plugins' ) )
-       wp_die( __( 'You do not have sufficient permissions to update this site.' ) );
+       wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
 
 /**
  *
@@ -253,6 +253,8 @@ function list_plugin_updates() {
        <tbody class="plugins">
 <?php
        foreach ( (array) $plugins as $plugin_file => $plugin_data ) {
+               $plugin_data = (object) _get_plugin_data_markup_translate( $plugin_file, (array) $plugin_data, false, true );
+
                // Get plugin compat for running version of WordPress.
                if ( isset($plugin_data->update->tested) && version_compare($plugin_data->update->tested, $cur_wp_version, '>=') ) {
                        $compat = '<br />' . sprintf(__('Compatibility with WordPress %1$s: 100%% (according to its author)'), $cur_wp_version);
@@ -623,7 +625,7 @@ if ( 'upgrade-core' == $action ) {
 } elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) {
 
        if ( ! current_user_can( 'update_core' ) )
-               wp_die( __( 'You do not have sufficient permissions to update this site.' ) );
+               wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
 
        check_admin_referer('upgrade-core');
 
@@ -647,7 +649,7 @@ if ( 'upgrade-core' == $action ) {
 } elseif ( 'do-plugin-upgrade' == $action ) {
 
        if ( ! current_user_can( 'update_plugins' ) )
-               wp_die( __( 'You do not have sufficient permissions to update this site.' ) );
+               wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
 
        check_admin_referer('upgrade-core');
 
@@ -675,7 +677,7 @@ if ( 'upgrade-core' == $action ) {
 } elseif ( 'do-theme-upgrade' == $action ) {
 
        if ( ! current_user_can( 'update_themes' ) )
-               wp_die( __( 'You do not have sufficient permissions to update this site.' ) );
+               wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
 
        check_admin_referer('upgrade-core');
 
@@ -705,7 +707,7 @@ if ( 'upgrade-core' == $action ) {
 } elseif ( 'do-translation-upgrade' == $action ) {
 
        if ( ! current_user_can( 'update_core' ) && ! current_user_can( 'update_plugins' ) && ! current_user_can( 'update_themes' ) )
-               wp_die( __( 'You do not have sufficient permissions to update this site.' ) );
+               wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
 
        check_admin_referer( 'upgrade-translations' );