mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Fix storage of illegal_names. Add an upgrade routine to fix bad values.
props SergeyBiryukov. see #23418. for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@24448 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1277,6 +1277,16 @@ function upgrade_network() {
|
||||
// 3.5
|
||||
if ( $wp_current_db_version < 21823 )
|
||||
update_site_option( 'ms_files_rewriting', '1' );
|
||||
|
||||
// 3.5.2
|
||||
if ( $wp_current_db_version < 24448 ) {
|
||||
$illegal_names = get_site_option( 'illegal_names' );
|
||||
if ( is_array( $illegal_names ) && count( $illegal_names ) === 1 ) {
|
||||
$illegal_name = reset( $illegal_names );
|
||||
$illegal_names = explode( ' ', $illegal_name );
|
||||
update_site_option( 'illegal_names', $illegal_names );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The functions we use to actually do stuff
|
||||
|
||||
Reference in New Issue
Block a user