@@ 192-195 (lines=4) @@ | ||
189 | global $wpdb; |
|
190 | ||
191 | $php_compat = version_compare( phpversion(), $item->php_version, '>=' ); |
|
192 | if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) |
|
193 | $mysql_compat = true; |
|
194 | else |
|
195 | $mysql_compat = version_compare( $wpdb->db_version(), $item->mysql_version, '>=' ); |
|
196 | ||
197 | if ( ! $php_compat || ! $mysql_compat ) |
|
198 | return false; |
@@ 866-869 (lines=4) @@ | ||
863 | $old_wp_version = $wp_version; // The version of WordPress we're updating from |
|
864 | $development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' ) ); // a dash in the version indicates a Development release |
|
865 | $php_compat = version_compare( $php_version, $required_php_version, '>=' ); |
|
866 | if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) |
|
867 | $mysql_compat = true; |
|
868 | else |
|
869 | $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ); |
|
870 | ||
871 | if ( !$mysql_compat || !$php_compat ) |
|
872 | $wp_filesystem->delete($from, true); |
@@ 65-68 (lines=4) @@ | ||
62 | $form_action = 'update-core.php?action=do-core-reinstall'; |
|
63 | } else { |
|
64 | $php_compat = version_compare( $php_version, $update->php_version, '>=' ); |
|
65 | if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) |
|
66 | $mysql_compat = true; |
|
67 | else |
|
68 | $mysql_compat = version_compare( $mysql_version, $update->mysql_version, '>=' ); |
|
69 | ||
70 | if ( !$mysql_compat && !$php_compat ) |
|
71 | $message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> 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.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version ); |
@@ 51-54 (lines=4) @@ | ||
48 | $php_version = phpversion(); |
|
49 | $mysql_version = $wpdb->db_version(); |
|
50 | $php_compat = version_compare( $php_version, $required_php_version, '>=' ); |
|
51 | if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) |
|
52 | $mysql_compat = true; |
|
53 | else |
|
54 | $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ); |
|
55 | ||
56 | @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); |
|
57 | ?> |