WordPress.org

Make WordPress Core

Changeset 32435


Ignore:
Timestamp:
05/06/2015 11:14:34 PM (5 years ago)
Author:
mdawaffe
Message:

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

Merges [32429] for the 3.7 branch.

See #32165.

File:
1 edited

Legend:

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

    r32423 r32435  
    12911291    if ( $wp_current_db_version < 26151 ) {
    12921292        $content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
     1293
     1294        if ( is_wp_error( $content_length ) ) {
     1295            return;
     1296        }
     1297
    12931298        if ( false === $content_length ) {
    12941299            $content_length = array(
Note: See TracChangeset for help on using the changeset viewer.