WordPress.org

Make WordPress Core

Changeset 32432


Ignore:
Timestamp:
05/06/2015 11:12:52 PM (6 years ago)
Author:
mdawaffe
Message:

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

Merges [32429] for the 4.0 branch.

See #32165.

File:
1 edited

Legend:

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

    r32420 r32432  
    13481348    if ( $wp_current_db_version < 29632 ) {
    13491349        $content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
     1350
     1351        if ( is_wp_error( $content_length ) ) {
     1352            return;
     1353        }
     1354
    13501355        if ( false === $content_length ) {
    13511356            $content_length = array(
Note: See TracChangeset for help on using the changeset viewer.