mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 20:15:08 +00:00
Upgrade: $wpdb->get_col_length()
sanity check: bail on unexpected return value.
Merges [32429] for the 4.1 branch. See #32165. Built from https://develop.svn.wordpress.org/branches/4.1@32431 git-svn-id: http://core.svn.wordpress.org/branches/4.1@32401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3e3300395a
commit
3989e1f450
@ -1349,6 +1349,11 @@ function upgrade_415() {
|
|||||||
|
|
||||||
if ( $wp_current_db_version < 30135 ) {
|
if ( $wp_current_db_version < 30135 ) {
|
||||||
$content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
|
$content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
|
||||||
|
|
||||||
|
if ( is_wp_error( $content_length ) ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ( false === $content_length ) {
|
if ( false === $content_length ) {
|
||||||
$content_length = array(
|
$content_length = array(
|
||||||
'type' => 'byte',
|
'type' => 'byte',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user