Comments: look for wp_error when checking whether $wpdb->get_col_length()
has failed.
See #10377. git-svn-id: https://develop.svn.wordpress.org/trunk@36542 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a440256da0
commit
d3a848c773
@ -972,7 +972,7 @@ function wp_get_comment_fields_max_lengths() {
|
||||
$max_length = 0;
|
||||
|
||||
// No point if we can't get the DB column lengths
|
||||
if ( $col_length === false ) {
|
||||
if ( is_wp_error( $col_length ) ) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user