X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/38ac4bc40322ecdc4052db4263466573e01fa51f..3d39054f012aefe514b3f5509e32f09fc4feda44:/wp-admin/update-core.php diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index a8eb7f51..404bb8ac 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -20,8 +20,18 @@ 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.' ) ); +/** + * + * @global string $wp_local_package + * @global wpdb $wpdb + * @global string $wp_version + * + * @staticvar bool $first_pass + * + * @param object $update + */ function list_core_update( $update ) { global $wp_local_package, $wpdb, $wp_version; static $first_pass = true; @@ -104,6 +114,9 @@ function list_core_update( $update ) { } +/** + * @since 2.7.0 + */ function dismissed_updates() { $dismissed = get_core_updates( array( 'dismissed' => true, 'available' => false ) ); if ( $dismissed ) { @@ -122,7 +135,7 @@ function dismissed_updates() { '.__('Show hidden updates').'

'; echo '