[wp-trac] [WordPress Trac] #10786: Implementation of %my_taxonomy% in permastructs is incomplete

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 17 03:37:50 UTC 2009


#10786: Implementation of %my_taxonomy% in permastructs is incomplete
--------------------------+-------------------------------------------------
 Reporter:  johnbillion   |       Owner:  ryan                           
     Type:  defect (bug)  |      Status:  new                            
 Priority:  normal        |   Milestone:  Unassigned                     
Component:  Permalinks    |     Version:  2.9                            
 Severity:  minor         |    Keywords:  permalinks, taxonomy, has-patch
--------------------------+-------------------------------------------------
Changes (by johnbillion):

  * keywords:  permalinks, taxonomy => permalinks, taxonomy, has-patch


Comment:

 Patch.

 The patch basically copies the code which handles %category% in
 permastructs and applies it to custom taxonomies. It loops over each
 custom post taxonomy and if the taxonomy slug is present in the
 permstruct, it sets the search and replacement terms.

 The patch also supports a default taxonomy term just like %category%
 supports a default category. This will allow a site (or a plugin) that is
 using a custom taxonomy to specify the default taxonomy that should be
 used in the event a post doesn't have a taxonomy term attached to it for
 the taxonomy used in the permastruct.

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


More information about the wp-trac mailing list