diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index e87708a34e..6d8f6e8e76 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -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; }