Comments: look for wp_error when checking whether `$wpdb->get_col_length()` has failed.
See #10377. Built from https://develop.svn.wordpress.org/trunk@36542 git-svn-id: http://core.svn.wordpress.org/trunk@36509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9e73dea03a
commit
0ff58701e0
|
@ -972,7 +972,7 @@ function wp_get_comment_fields_max_lengths() {
|
||||||
$max_length = 0;
|
$max_length = 0;
|
||||||
|
|
||||||
// No point if we can't get the DB column lengths
|
// No point if we can't get the DB column lengths
|
||||||
if ( $col_length === false ) {
|
if ( is_wp_error( $col_length ) ) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-alpha-36541';
|
$wp_version = '4.5-alpha-36542';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue