WordPress.org

Make WordPress Core

Changeset 32434


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

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

Merges [32429] for the 3.8 branch.

See #32165.

File:
1 edited

Legend:

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

    r32422 r32434  
    13061306    if ( $wp_current_db_version < 26694 ) {
    13071307        $content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
     1308
     1309        if ( is_wp_error( $content_length ) ) {
     1310            return;
     1311        }
     1312
    13081313        if ( false === $content_length ) {
    13091314            $content_length = array(
Note: See TracChangeset for help on using the changeset viewer.