mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 15:16:29 +01:00
Upgrade: Since MySQL may auto-expand column widths when changing a column's character set, we must do our length-based comment checks prior to the character set changes.
Props jorbin, et alii. Merges [32440] for the 4.2 branch. See #32165. Built from https://develop.svn.wordpress.org/branches/4.2@32441 git-svn-id: http://core.svn.wordpress.org/branches/4.2@32411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ff4c5d2767
commit
ba2de1e736
@ -524,12 +524,15 @@ function upgrade_all() {
|
|||||||
if ( $wp_current_db_version < 29630 )
|
if ( $wp_current_db_version < 29630 )
|
||||||
upgrade_400();
|
upgrade_400();
|
||||||
|
|
||||||
if ( $wp_current_db_version < 31351 )
|
// Don't harsh my mellow. upgrade_422() must be called before
|
||||||
upgrade_420();
|
// upgrade_420() to catch bad comments prior to any auto-expansion of
|
||||||
|
// MySQL column widths.
|
||||||
if ( $wp_current_db_version < 31534 )
|
if ( $wp_current_db_version < 31534 )
|
||||||
upgrade_422();
|
upgrade_422();
|
||||||
|
|
||||||
|
if ( $wp_current_db_version < 31351 )
|
||||||
|
upgrade_420();
|
||||||
|
|
||||||
maybe_disable_link_manager();
|
maybe_disable_link_manager();
|
||||||
|
|
||||||
maybe_disable_automattic_widgets();
|
maybe_disable_automattic_widgets();
|
||||||
|
Loading…
Reference in New Issue
Block a user