[wp-trac] Re: [WordPress Trac] #6481: Fancy permalinks should be enabled on new sites

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 31 07:47:10 GMT 2008


#6481: Fancy permalinks should be enabled on new sites
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  anonymous
     Type:  enhancement        |       Status:  new      
 Priority:  low                |    Milestone:  2.7      
Component:  General            |      Version:  2.5      
 Severity:  minor              |   Resolution:           
 Keywords:                     |  
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):

  * priority:  normal => low
  * severity:  normal => minor

Comment:

 turns out the above code stopped working with wp 2.5

 corrected code recreates wp_rewrite before flushing:


 {{{

 $GLOBALS['wp_rewrite'] =& new WP_Rewrite();
 $GLOBALS['wp_rewrite']->flush_rules();
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6481#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list