Make WordPress Core

Changeset 12565


Ignore:
Timestamp:
12/28/2009 05:19:43 PM (15 years ago)
Author:
ryan
Message:

Cleanup after bailing when php or mysql versions are not compat. Props nacin. fixes #11638 for 2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.9/wp-admin/includes/update-core.php

    r12451 r12565  
    224224    $required_php_version = '4.3';
    225225    $required_mysql_version = '4.1.2';
    226     $wp_version = '2.9';
     226    $wp_version = '2.9.1';
    227227    $php_compat     = version_compare( $php_version, $required_php_version, '>=' );
    228228    $mysql_compat   = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
     229
     230    if ( !$mysql_compat || !$php_compat )
     231        $wp_filesystem->delete($from, true);
    229232
    230233    if ( !$mysql_compat && !$php_compat )
Note: See TracChangeset for help on using the changeset viewer.