WordPress.org

Make WordPress Core

Changeset 32429


Ignore:
Timestamp:
05/06/2015 11:10:18 PM (6 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
  • trunk/src/wp-admin/includes/upgrade.php

    r32417 r32429  
    14491449    if ( $wp_current_db_version < 32364 ) {
    14501450        $content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
     1451
     1452        if ( is_wp_error( $content_length ) ) {
     1453            return;
     1454        }
     1455
    14511456        if ( false === $content_length ) {
    14521457            $content_length = array(
Note: See TracChangeset for help on using the changeset viewer.