[wp-trac] [WordPress Trac] #16736: Rewrite rules are generated inconsistently for custom taxonomies and /%category%/%postname% permalink structure

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 11 02:19:02 UTC 2011


#16736: Rewrite rules are generated inconsistently for custom taxonomies and
/%category%/%postname% permalink structure
-------------------------------+------------------------------
 Reporter:  valentinas         |       Owner:  scribu
     Type:  defect (bug)       |      Status:  reviewing
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Rewrite Rules      |     Version:  3.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by ryanduff):

 Replying to [comment:30 valentinas]:
 > Ryan, test case is to add book first and set permalinks after that. But
 $wp_rewrite->flush_rules() after registering post type helps. I will try
 that on wp-e-commerce (this time on real plugin) and update the ticket
 with the results.

 You want to make sure you do it on activation and not registration. I do
 it on registration in dev, but change to activation once a plugin is
 released. No need to flush on every admin init.

 Let me know how your testing works out.

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


More information about the wp-trac mailing list