Wordpress 3.5.2
[autoinstalls/wordpress.git] / wp-admin / includes / upgrade.php
index c192cf3aae1077427e80982b88feadfbca93c8be..d22922ed781480a96357a6ca04d540a73fd2ec3b 100644 (file)
@@ -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 < 22442 ) {
+               $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