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

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 21 15:30:12 UTC 2012


#18752: Allow category preference in permalinks
------------------------------+------------------
 Reporter:  aaroncampbell     |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.5
Component:  General           |     Version:  3.2
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------
Changes (by nacin):

 * keywords:  has-patch => has-patch commit
 * milestone:  Future Release => 3.5


Comment:

 Replying to [comment:16 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.

 You got the gist, anyway. :-)

 Let's test it out and commit. Any thoughts on a category object versus an
 ID? If we run $cat through get_term(), it should force an object if given
 an ID, the same way we'd do it with get_post().

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


More information about the wp-trac mailing list