Make WordPress Core

Changeset 32433


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

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

Merges [32429] for the 3.9 branch.

See #32165.

File:
1 edited

Legend:

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

    r32421 r32433  
    12931293        if ( $wp_current_db_version < 27918 ) {
    12941294                $content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
     1295
     1296                if ( is_wp_error( $content_length ) ) {
     1297                        return;
     1298                }
     1299
    12951300                if ( false === $content_length ) {
    12961301                        $content_length = array(
Note: See TracChangeset for help on using the changeset viewer.