[wp-trac] [WordPress Trac] #25819: "ms_files_rewriting" site option is not created during upgrades

WordPress Trac noreply at wordpress.org
Fri Dec 13 13:49:57 UTC 2013


#25819: "ms_files_rewriting" site option is not created during upgrades
---------------------------------+-----------------------------
 Reporter:  gradyetc             |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  Future Release
Component:  Upgrade/Install      |     Version:  3.5
 Severity:  minor                |  Resolution:
 Keywords:  has-patch 3.9-early  |
---------------------------------+-----------------------------

Comment (by gradyetc):

 Perhaps something like this in `upgrade_network()` or a 3.9 upgrade
 routine?

 {{{
 $ms_files_rewriting = get_site_option( 'ms_files_rewriting' );

 remove_all_filters( 'default_site_option_ms_files_rewriting' );

 if ( get_site_option( 'ms_files_rewriting' ) != $ms_files_rewriting ) {
         update_site_option( 'ms_files_rewriting', intval(
 $ms_files_rewriting ) );
 }
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25819#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list