mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user