Make WordPress Core

Changeset 32430


Ignore:
Timestamp:
05/06/2015 11:11:25 PM (10 years ago)
Author:
mdawaffe
Message:

Upgrade: $wpdb->get_col_length() sanity check: bail on unexpected return value.

See #32165.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/src/wp-admin/includes/upgrade.php

    r32418 r32430  
    14571457    if ( $wp_current_db_version < 31534 ) {
    14581458        $content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
     1459
     1460        if ( is_wp_error( $content_length ) ) {
     1461            return;
     1462        }
     1463
    14591464        if ( false === $content_length ) {
    14601465            $content_length = array(
Note: See TracChangeset for help on using the changeset viewer.