[wp-trac] [WordPress Trac] #18752: Allow category preference in permalinks

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 21 14:58:07 UTC 2012


#18752: Allow category preference in permalinks
---------------------------+-----------------------------
 Reporter:  aaroncampbell  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  General        |     Version:  3.2
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+-----------------------------

Comment (by aaroncampbell):

 Replying to [comment:15 nacin]:

 That works for me, but it looks like you missed another reference to
 `$cats[0]` on the very next line.  If I return a category object to your
 filter, it'll be prepended with the parents of `$cats[0]` if it has any.
 [attachment:18752.4.diff] should fix that.

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


More information about the wp-trac mailing list