X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f5fcdc7994bb67cce809bc4777944ae8b7fad4a4..53f4633144ed68c8b8fb5861f992b5489894a940:/wp-admin/update-core.php diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index a8eb7f51..96902169 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -22,6 +22,16 @@ 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.' ) ); +/** + * + * @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 ) { @@ -136,7 +149,9 @@ function dismissed_updates() { * * @since 2.7.0 * - * @return null + * @global string $wp_version + * @global string $required_php_version + * @global string $required_mysql_version */ function core_upgrade_preamble() { global $wp_version, $required_php_version, $required_mysql_version; @@ -162,7 +177,7 @@ function core_upgrade_preamble() { } echo ''; } else { - echo '
'; + echo '
'; _e('Important: before updating, please back up your database and files. For help with updates, visit the Updating WordPress Codex page.'); echo '
+ | ||
---|---|---|
+ |
+ | ||
---|---|---|
+ |