diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php
index b0b86166ad..67cc3f3347 100644
|
a
|
b
|
$_old_files = array(
|
| 254 | 254 | 'wp-includes/js/jquery/interface.js', |
| 255 | 255 | 'wp-includes/js/scriptaculous/prototype.js', |
| 256 | 256 | // Following file added back in 5.1 see #45645 |
| 257 | | //'wp-includes/js/tinymce/wp-tinymce.js', |
| | 257 | // 'wp-includes/js/tinymce/wp-tinymce.js', |
| 258 | 258 | // 3.1 |
| 259 | 259 | 'wp-admin/edit-attachment-rows.php', |
| 260 | 260 | 'wp-admin/edit-link-categories.php', |
| … |
… |
function update_core( $from, $to ) {
|
| 928 | 928 | } |
| 929 | 929 | |
| 930 | 930 | $wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE ); |
| 931 | | require( WP_CONTENT_DIR . '/upgrade/version-current.php' ); |
| | 931 | require WP_CONTENT_DIR . '/upgrade/version-current.php'; |
| 932 | 932 | $wp_filesystem->delete( $versions_file ); |
| 933 | 933 | |
| 934 | 934 | $php_version = phpversion(); |
| … |
… |
function update_core( $from, $to ) {
|
| 946 | 946 | $wp_filesystem->delete( $from, true ); |
| 947 | 947 | } |
| 948 | 948 | |
| | 949 | /* translators: %s: Update PHP page URL */ |
| | 950 | $php_update_message = '<br>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) ); |
| | 951 | |
| | 952 | $annotation = wp_get_update_php_annotation(); |
| | 953 | |
| | 954 | if ( $annotation ) { |
| | 955 | $php_update_message .= '<br><em>' . $annotation . '</em>'; |
| | 956 | } |
| | 957 | |
| 949 | 958 | if ( ! $mysql_compat && ! $php_compat ) { |
| 950 | | return new WP_Error( 'php_mysql_not_compatible', sprintf( __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) ); |
| | 959 | return new WP_Error( 'php_mysql_not_compatible', sprintf( __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) . $php_update_message ); |
| 951 | 960 | } elseif ( ! $php_compat ) { |
| 952 | | return new WP_Error( 'php_not_compatible', sprintf( __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ) ); |
| | 961 | return new WP_Error( 'php_not_compatible', sprintf( __( 'The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version ) . $php_update_message ); |
| 953 | 962 | } elseif ( ! $mysql_compat ) { |
| 954 | 963 | return new WP_Error( 'mysql_not_compatible', sprintf( __( 'The update cannot be installed because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_mysql_version, $mysql_version ) ); |
| 955 | 964 | } |
| … |
… |
function update_core( $from, $to ) {
|
| 1165 | 1174 | // If a error occurs partway through this final step, keep the error flowing through, but keep process going. |
| 1166 | 1175 | if ( is_wp_error( $_result ) ) { |
| 1167 | 1176 | if ( ! is_wp_error( $result ) ) { |
| 1168 | | $result = new WP_Error; |
| | 1177 | $result = new WP_Error(); |
| 1169 | 1178 | } |
| 1170 | 1179 | $result->add( $_result->get_error_code() . "_$type", $_result->get_error_message(), substr( $_result->get_error_data(), strlen( $dest ) ) ); |
| 1171 | 1180 | } |
| … |
… |
function update_core( $from, $to ) {
|
| 1253 | 1262 | * |
| 1254 | 1263 | * @param string $from source directory |
| 1255 | 1264 | * @param string $to destination directory |
| 1256 | | * @param array $skip_list a list of files/folders to skip copying |
| | 1265 | * @param array $skip_list a list of files/folders to skip copying |
| 1257 | 1266 | * @return mixed WP_Error on failure, True on success. |
| 1258 | 1267 | */ |
| 1259 | 1268 | function _copy_dir( $from, $to, $skip_list = array() ) { |
| … |
… |
window.location = 'about.php?updated';
|
| 1350 | 1359 | <?php |
| 1351 | 1360 | |
| 1352 | 1361 | // Include admin-footer.php and exit. |
| 1353 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| | 1362 | include ABSPATH . 'wp-admin/admin-footer.php'; |
| 1354 | 1363 | exit(); |
| 1355 | 1364 | } |
| 1356 | 1365 | |
diff --git a/wp-admin/install.php b/wp-admin/install.php
index 4a38eab1cd..3c27fafb80 100644
|
a
|
b
|
if ( false ) {
|
| 33 | 33 | define( 'WP_INSTALLING', true ); |
| 34 | 34 | |
| 35 | 35 | /** Load WordPress Bootstrap */ |
| 36 | | require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| | 36 | require_once dirname( dirname( __FILE__ ) ) . '/wp-load.php'; |
| 37 | 37 | |
| 38 | 38 | /** Load WordPress Administration Upgrade API */ |
| 39 | | require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); |
| | 39 | require_once ABSPATH . 'wp-admin/includes/upgrade.php'; |
| 40 | 40 | |
| 41 | 41 | /** Load WordPress Translation Install API */ |
| 42 | | require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); |
| | 42 | require_once ABSPATH . 'wp-admin/includes/translation-install.php'; |
| 43 | 43 | |
| 44 | 44 | /** Load wpdb */ |
| 45 | | require_once( ABSPATH . WPINC . '/wp-db.php' ); |
| | 45 | require_once ABSPATH . WPINC . '/wp-db.php'; |
| 46 | 46 | |
| 47 | 47 | nocache_headers(); |
| 48 | 48 | |
| … |
… |
$version_url = sprintf(
|
| 243 | 243 | sanitize_title( $wp_version ) |
| 244 | 244 | ); |
| 245 | 245 | |
| | 246 | /* translators: %s: Update PHP page URL */ |
| | 247 | $php_update_message = '<br>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) ); |
| | 248 | |
| | 249 | $annotation = wp_get_update_php_annotation(); |
| | 250 | |
| | 251 | if ( $annotation ) { |
| | 252 | $php_update_message .= '<br><em>' . $annotation . '</em>'; |
| | 253 | } |
| | 254 | |
| 246 | 255 | if ( ! $mysql_compat && ! $php_compat ) { |
| 247 | 256 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number */ |
| 248 | | $compat = sprintf( __( 'You cannot install because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); |
| | 257 | $compat = sprintf( __( 'You cannot install because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) . $php_update_message; |
| 249 | 258 | } elseif ( ! $php_compat ) { |
| 250 | 259 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number */ |
| 251 | | $compat = sprintf( __( 'You cannot install because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_php_version, $php_version ); |
| | 260 | $compat = sprintf( __( 'You cannot install because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_php_version, $php_version ) . $php_update_message; |
| 252 | 261 | } elseif ( ! $mysql_compat ) { |
| 253 | 262 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number */ |
| 254 | 263 | $compat = sprintf( __( 'You cannot install because <a href="%1$s">WordPress %2$s</a> requires MySQL version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_mysql_version, $mysql_version ); |
diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php
index 570703e5d8..0d8dad303a 100644
|
a
|
b
|
|
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | /** WordPress Administration Bootstrap */ |
| 10 | | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| | 10 | require_once dirname( __FILE__ ) . '/admin.php'; |
| 11 | 11 | |
| 12 | 12 | wp_enqueue_style( 'plugin-install' ); |
| 13 | 13 | wp_enqueue_script( 'plugin-install' ); |
| … |
… |
function list_core_update( $update ) {
|
| 76 | 76 | sanitize_title( $update->current ) |
| 77 | 77 | ); |
| 78 | 78 | |
| | 79 | /* translators: %s: Update PHP page URL */ |
| | 80 | $php_update_message = '<br>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) ); |
| | 81 | |
| | 82 | $annotation = wp_get_update_php_annotation(); |
| | 83 | |
| | 84 | if ( $annotation ) { |
| | 85 | $php_update_message .= '<br><em>' . $annotation . '</em>'; |
| | 86 | } |
| | 87 | |
| 79 | 88 | if ( ! $mysql_compat && ! $php_compat ) { |
| 80 | 89 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number */ |
| 81 | | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version ); |
| | 90 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version ) . $php_update_message; |
| 82 | 91 | } elseif ( ! $php_compat ) { |
| 83 | 92 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number */ |
| 84 | | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $update->current, $update->php_version, $php_version ); |
| | 93 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $update->current, $update->php_version, $php_version ) . $php_update_message; |
| 85 | 94 | } elseif ( ! $mysql_compat ) { |
| 86 | 95 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number */ |
| 87 | 96 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires MySQL version %3$s or higher. You are running version %4$s.' ), $version_url, $update->current, $update->mysql_version, $mysql_version ); |
| … |
… |
function core_upgrade_preamble() {
|
| 183 | 192 | |
| 184 | 193 | if ( wp_http_supports( array( 'ssl' ) ) ) { |
| 185 | 194 | require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
| 186 | | $upgrader = new WP_Automatic_Updater; |
| | 195 | $upgrader = new WP_Automatic_Updater(); |
| 187 | 196 | $future_minor_update = (object) array( |
| 188 | 197 | 'current' => $wp_version . '.1.next.minor', |
| 189 | 198 | 'version' => $wp_version . '.1.next.minor', |
| … |
… |
function core_upgrade_preamble() {
|
| 208 | 217 | |
| 209 | 218 | if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) { |
| 210 | 219 | require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
| 211 | | $upgrader = new WP_Automatic_Updater; |
| | 220 | $upgrader = new WP_Automatic_Updater(); |
| 212 | 221 | if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) { |
| 213 | 222 | echo '<div class="updated inline"><p>'; |
| 214 | 223 | echo '<strong>' . __( 'BETA TESTERS:' ) . '</strong> ' . __( 'This site is set up to install updates of future beta versions automatically.' ); |
| … |
… |
function list_plugin_updates() {
|
| 237 | 246 | $wp_version = get_bloginfo( 'version' ); |
| 238 | 247 | $cur_wp_version = preg_replace( '/-.*$/', '', $wp_version ); |
| 239 | 248 | |
| 240 | | require_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); |
| | 249 | require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; |
| 241 | 250 | $plugins = get_plugin_updates(); |
| 242 | 251 | if ( empty( $plugins ) ) { |
| 243 | 252 | echo '<h2>' . __( 'Plugins' ) . '</h2>'; |
| … |
… |
function list_translation_updates() {
|
| 497 | 506 | function do_core_upgrade( $reinstall = false ) { |
| 498 | 507 | global $wp_filesystem; |
| 499 | 508 | |
| 500 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| | 509 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
| 501 | 510 | |
| 502 | 511 | if ( $reinstall ) { |
| 503 | 512 | $url = 'update-core.php?action=do-core-reinstall'; |
| … |
… |
if ( 'upgrade-core' == $action ) {
|
| 655 | 664 | $force_check = ! empty( $_GET['force-check'] ); |
| 656 | 665 | wp_version_check( array(), $force_check ); |
| 657 | 666 | |
| 658 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| | 667 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
| 659 | 668 | ?> |
| 660 | 669 | <div class="wrap"> |
| 661 | 670 | <h1><?php _e( 'WordPress Updates' ); ?></h1> |
| … |
… |
if ( 'upgrade-core' == $action ) {
|
| 712 | 721 | ) |
| 713 | 722 | ); |
| 714 | 723 | |
| 715 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| | 724 | include ABSPATH . 'wp-admin/admin-footer.php'; |
| 716 | 725 | |
| 717 | 726 | } elseif ( 'do-core-upgrade' == $action || 'do-core-reinstall' == $action ) { |
| 718 | 727 | |
| … |
… |
if ( 'upgrade-core' == $action ) {
|
| 729 | 738 | do_undismiss_core_update(); |
| 730 | 739 | } |
| 731 | 740 | |
| 732 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| | 741 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
| 733 | 742 | if ( 'do-core-reinstall' == $action ) { |
| 734 | 743 | $reinstall = true; |
| 735 | 744 | } else { |
| … |
… |
if ( 'upgrade-core' == $action ) {
|
| 748 | 757 | ) |
| 749 | 758 | ); |
| 750 | 759 | |
| 751 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| | 760 | include ABSPATH . 'wp-admin/admin-footer.php'; |
| 752 | 761 | |
| 753 | 762 | } elseif ( 'do-plugin-upgrade' == $action ) { |
| 754 | 763 | |
| … |
… |
if ( 'upgrade-core' == $action ) {
|
| 772 | 781 | |
| 773 | 782 | $title = __( 'Update Plugins' ); |
| 774 | 783 | |
| 775 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| | 784 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
| 776 | 785 | echo '<div class="wrap">'; |
| 777 | 786 | echo '<h1>' . __( 'Update Plugins' ) . '</h1>'; |
| 778 | 787 | echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0" title="' . esc_attr__( 'Update progress' ) . '"></iframe>'; |
| … |
… |
if ( 'upgrade-core' == $action ) {
|
| 786 | 795 | ) |
| 787 | 796 | ); |
| 788 | 797 | |
| 789 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| | 798 | include ABSPATH . 'wp-admin/admin-footer.php'; |
| 790 | 799 | |
| 791 | 800 | } elseif ( 'do-theme-upgrade' == $action ) { |
| 792 | 801 | |
| … |
… |
if ( 'upgrade-core' == $action ) {
|
| 810 | 819 | |
| 811 | 820 | $title = __( 'Update Themes' ); |
| 812 | 821 | |
| 813 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| | 822 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
| 814 | 823 | ?> |
| 815 | 824 | <div class="wrap"> |
| 816 | 825 | <h1><?php _e( 'Update Themes' ); ?></h1> |
| … |
… |
if ( 'upgrade-core' == $action ) {
|
| 826 | 835 | ) |
| 827 | 836 | ); |
| 828 | 837 | |
| 829 | | include( ABSPATH . 'wp-admin/admin-footer.php' ); |
| | 838 | include ABSPATH . 'wp-admin/admin-footer.php'; |
| 830 | 839 | |
| 831 | 840 | } elseif ( 'do-translation-upgrade' == $action ) { |
| 832 | 841 | |
| … |
… |
if ( 'upgrade-core' == $action ) {
|
| 836 | 845 | |
| 837 | 846 | check_admin_referer( 'upgrade-translations' ); |
| 838 | 847 | |
| 839 | | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| 840 | | include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); |
| | 848 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
| | 849 | include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; |
| 841 | 850 | |
| 842 | 851 | $url = 'update-core.php?action=do-translation-upgrade'; |
| 843 | 852 | $nonce = 'upgrade-translations'; |
| … |
… |
if ( 'upgrade-core' == $action ) {
|
| 855 | 864 | ) |
| 856 | 865 | ); |
| 857 | 866 | |
| 858 | | require_once( ABSPATH . 'wp-admin/admin-footer.php' ); |
| | 867 | require_once ABSPATH . 'wp-admin/admin-footer.php'; |
| 859 | 868 | |
| 860 | 869 | } else { |
| 861 | 870 | /** |
diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php
index 330ef0fd9d..54661ddb1e 100644
|
a
|
b
|
|
| 15 | 15 | define( 'WP_INSTALLING', true ); |
| 16 | 16 | |
| 17 | 17 | /** Load WordPress Bootstrap */ |
| 18 | | require( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); |
| | 18 | require dirname( dirname( __FILE__ ) ) . '/wp-load.php'; |
| 19 | 19 | |
| 20 | 20 | nocache_headers(); |
| 21 | 21 | |
| 22 | 22 | timer_start(); |
| 23 | | require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); |
| | 23 | require_once ABSPATH . 'wp-admin/includes/upgrade.php'; |
| 24 | 24 | |
| 25 | 25 | delete_site_transient( 'update_core' ); |
| 26 | 26 | |
| … |
… |
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) {
|
| 54 | 54 | $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ); |
| 55 | 55 | } |
| 56 | 56 | |
| | 57 | /* translators: %s: Update PHP page URL */ |
| | 58 | $php_update_message = '<br>' . sprintf( __( '<a href="%s">Learn more about updating PHP</a>.' ), esc_url( wp_get_update_php_url() ) ); |
| | 59 | |
| | 60 | $annotation = wp_get_update_php_annotation(); |
| | 61 | |
| | 62 | if ( $annotation ) { |
| | 63 | $php_update_message .= '<br><em>' . $annotation . '</em>'; |
| | 64 | } |
| | 65 | |
| 57 | 66 | @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); |
| 58 | 67 | ?> |
| 59 | 68 | <!DOCTYPE html> |
| … |
… |
elseif ( ! $php_compat || ! $mysql_compat ) :
|
| 87 | 96 | |
| 88 | 97 | if ( ! $mysql_compat && ! $php_compat ) { |
| 89 | 98 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Minimum required MySQL version number, 5: Current PHP version number, 6: Current MySQL version number */ |
| 90 | | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ); |
| | 99 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher and MySQL version %4$s or higher. You are running PHP version %5$s and MySQL version %6$s.' ), $version_url, $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) . $php_update_message; |
| 91 | 100 | } elseif ( ! $php_compat ) { |
| 92 | 101 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required PHP version number, 4: Current PHP version number */ |
| 93 | | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_php_version, $php_version ); |
| | 102 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires PHP version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_php_version, $php_version ) . $php_update_message; |
| 94 | 103 | } elseif ( ! $mysql_compat ) { |
| 95 | 104 | /* translators: 1: URL to WordPress release notes, 2: WordPress version number, 3: Minimum required MySQL version number, 4: Current MySQL version number */ |
| 96 | 105 | $message = sprintf( __( 'You cannot update because <a href="%1$s">WordPress %2$s</a> requires MySQL version %3$s or higher. You are running version %4$s.' ), $version_url, $wp_version, $required_mysql_version, $mysql_version ); |