Comments: Use TEXT column type in fallback for wp_get_comment_column_max_length().

Fixes #10377.

Built from https://develop.svn.wordpress.org/trunk@36325


git-svn-id: http://core.svn.wordpress.org/trunk@36292 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Rachel Baker 2016-01-15 20:10:27 +00:00
parent d2dabdecf6
commit f407e3a473
2 changed files with 3 additions and 2 deletions

View File

@ -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'] ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-1452887291993';
$wp_version = '4.5-alpha-1452888612815';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.