Upgrade: `$wpdb->get_col_length()` sanity check: bail on unexpected return value.
See #32165. Built from https://develop.svn.wordpress.org/branches/4.2@32430 git-svn-id: http://core.svn.wordpress.org/branches/4.2@32400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
599782db47
commit
ff4c5d2767
|
@ -1456,6 +1456,11 @@ function upgrade_422() {
|
|||
|
||||
if ( $wp_current_db_version < 31534 ) {
|
||||
$content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
|
||||
|
||||
if ( is_wp_error( $content_length ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( false === $content_length ) {
|
||||
$content_length = array(
|
||||
'type' => 'byte',
|
||||
|
|
Loading…
Reference in New Issue