mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-11 04:30:11 +00:00
Comments: Use TEXT column type in fallback for wp_get_comment_column_max_length().
Fixes #10377. git-svn-id: https://develop.svn.wordpress.org/trunk@36325 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -966,7 +966,8 @@ function wp_get_comment_column_max_length( $column ) {
|
||||
} elseif ( is_array( $col_length ) && isset( $col_length['length'] ) && intval( $col_length['length'] ) > 0 ) {
|
||||
$max_length = (int) $col_length['length'];
|
||||
} else {
|
||||
$max_length = 255;
|
||||
// Assume a TEXT column, 65535 - 10.
|
||||
$max_length = 65525;
|
||||
}
|
||||
|
||||
if ( ! empty( $col_length['type'] ) && 'byte' === $col_length['type'] ) {
|
||||
|
||||
Reference in New Issue
Block a user