Changeset 33055
- Timestamp:
- 07/03/2015 03:25:07 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r33020 r33055 532 532 upgrade_400(); 533 533 534 // Don't harsh my mellow. upgrade_430() must be called before 535 // upgrade_420() to catch bad comments prior to any auto-expansion of 536 // MySQL column widths. 537 if ( $wp_current_db_version < 32814 ) 534 if ( $wp_current_db_version < 33055 ) 538 535 upgrade_430(); 539 540 if ( $wp_current_db_version < 31351 )541 upgrade_420();542 536 543 537 maybe_disable_link_manager(); … … 1495 1489 * @global wpdb $wpdb 1496 1490 */ 1497 function upgrade_420() { 1491 function upgrade_420() {} 1492 1493 /** 1494 * Execute changes made in WordPress 4.3.0. 1495 * 1496 * @since 4.3.0 1497 * 1498 * @global int $wp_current_db_version 1499 * @global wpdb $wpdb 1500 */ 1501 function upgrade_430() { 1498 1502 global $wp_current_db_version, $wpdb; 1499 1503 1500 if ( $wp_current_db_version < 31351 && $wpdb->charset === 'utf8mb4' ) { 1504 if ( $wp_current_db_version < 32364 ) { 1505 upgrade_430_fix_comments(); 1506 } 1507 1508 if ( $wp_current_db_version < 32814 ) { 1509 split_all_shared_terms(); 1510 } 1511 1512 if ( $wp_current_db_version < 33055 && 'utf8mb4' === $wpdb->charset ) { 1501 1513 if ( is_multisite() ) { 1502 1514 $tables = $wpdb->tables( 'blog' ); … … 1504 1516 $tables = $wpdb->tables( 'all' ); 1505 1517 } 1506 1518 1507 1519 foreach ( $tables as $table ) { 1508 1520 maybe_convert_table_to_utf8mb4( $table ); 1509 1521 } 1510 }1511 }1512 1513 /**1514 * Execute changes made in WordPress 4.3.0.1515 *1516 * @since 4.3.01517 *1518 * @global int $wp_current_db_version1519 * @global wpdb $wpdb1520 */1521 function upgrade_430() {1522 global $wp_current_db_version, $wpdb;1523 1524 if ( $wp_current_db_version < 32364 ) {1525 upgrade_430_fix_comments();1526 }1527 1528 if ( $wp_current_db_version < 32814 ) {1529 split_all_shared_terms();1530 1522 } 1531 1523 } … … 1697 1689 1698 1690 // 4.3 1699 if ( $wp_current_db_version < 3 2378&& 'utf8mb4' === $wpdb->charset ) {1691 if ( $wp_current_db_version < 33055 && 'utf8mb4' === $wpdb->charset ) { 1700 1692 if ( ! ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) && DO_NOT_UPGRADE_GLOBAL_TABLES ) ) { 1701 1693 $upgrade = false; … … 1710 1702 if ( $upgrade ) { 1711 1703 $wpdb->query( "ALTER TABLE $wpdb->signups DROP INDEX domain_path, ADD INDEX domain_path(domain(140),path(51))" ); 1704 } 1705 1706 $tables = $wpdb->tables( 'global' ); 1707 1708 foreach ( $tables as $table ) { 1709 maybe_convert_table_to_utf8mb4( $table ); 1712 1710 } 1713 1711 } -
trunk/src/wp-includes/version.php
r33046 r33055 12 12 * @global int $wp_db_version 13 13 */ 14 $wp_db_version = 3 2814;14 $wp_db_version = 33055; 15 15 16 16 /** -
trunk/src/wp-includes/wp-db.php
r33006 r33055 741 741 } 742 742 743 if ( ( $this->use_mysqli && ! ( $this->dbh instanceof mysqli ) ) 744 || ( empty( $this->dbh ) || ! ( $this->dbh instanceof mysqli ) ) ) { 743 if ( ( $this->use_mysqli && ! ( $this->dbh instanceof mysqli ) ) || empty( $this->dbh ) ) { 745 744 return; 746 745 }
Note: See TracChangeset
for help on using the changeset viewer.