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 '

'; @@ -198,6 +213,10 @@ function core_upgrade_preamble() { dismissed_updates(); } +/** + * + * @global string $wp_version + */ function list_plugin_updates() { global $wp_version; @@ -226,7 +245,7 @@ function list_plugin_updates() { - + @@ -279,7 +298,7 @@ function list_plugin_updates() { - + @@ -289,6 +308,9 @@ function list_plugin_updates() {

@@ -309,7 +330,7 @@ function list_theme_updates() {
- + @@ -328,7 +349,7 @@ function list_theme_updates() { - + @@ -338,6 +359,9 @@ function list_theme_updates() {
-

+

-

+

'; @@ -592,7 +624,7 @@ if ( 'upgrade-core' == $action ) { require_once(ABSPATH . 'wp-admin/admin-header.php'); echo '

'; - echo '

' . esc_html__('Update Plugins') . '

'; + echo '

' . __( 'Update Plugins' ) . '

'; echo ''; echo '
'; include(ABSPATH . 'wp-admin/admin-footer.php'); @@ -621,7 +653,7 @@ if ( 'upgrade-core' == $action ) { require_once(ABSPATH . 'wp-admin/admin-header.php'); ?>
-

+