[wp-trac] [WordPress Trac] #21945: wp_list_categories feed links unaware of custom type

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 20 20:35:47 UTC 2012


#21945: wp_list_categories feed links unaware of custom type
--------------------------+------------------------------
 Reporter:  belg4mit      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Types    |     Version:  3.4.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by belg4mit):

 You are right, it's not needed. It turns out in my hours of fiddling about
 I made a different change that actually fixed things, I had also added a
 negative look-behind to my rewrite-rule:

 {{{
 #add_rewrite_rule('^bar/[^/]+/([^/]*)/?',
 'index.php?foo=$matches[1]','top');
 add_rewrite_rule('^bar/[^/]+/((?!feed)[^/]*)/?','index.php?foo=$matches[1]','top');
 }}}

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


More information about the wp-trac mailing list