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

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 20 18:01:14 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 nacin):

 After coming back to this, I think this can be implemented in a much
 simpler and more obvious way.

 What we're doing is exposing an array of categories to be sorted however
 someone would like. But no matter what happens, we only care about the
 first value. (And actually, we care about the key of 0, so if someone
 wanted to do some kind of sorting or pushing they would need to make sure
 keys did get reset, which wouldn't always be the case depending on the
 method.)

 So what about [attachment:18752.3.diff]? A filter specifically on the
 category object. It expects a category object in return. (We could also do
 IDs.) Whichever object we get back, gets used.

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


More information about the wp-trac mailing list