[wp-trac] [WordPress Trac] #21050: EP_TAXONOMY : Rewrite endpoints don't work for custom taxonomies

WordPress Trac noreply at wordpress.org
Wed Dec 5 17:59:50 UTC 2012


#21050: EP_TAXONOMY : Rewrite endpoints don't work for custom taxonomies
---------------------------+------------------------------
 Reporter:  wpsmith        |       Owner:
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:
 Severity:  normal         |  Resolution:  worksforme
 Keywords:                 |
---------------------------+------------------------------
Changes (by misterbisson):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 UPDATE: this is either fixed and is no longer a problem, or resulted from
 a misunderstanding when calling `register_taxonomy()`.

 `register_taxonomy()` (see http://core.trac.wordpress.org/browser/trunk
 /wp-includes/taxonomy.php#L314 ) defaults to `'ep_mask' => EP_NONE`. The
 solution to this bug is to explicitly set the rewrite options and set
 `'ep_mask' => EP_TAGS` or similar. `rewrite.php` (see
 http://core.trac.wordpress.org/browser/trunk/wp-includes/rewrite.php#L111
 ) defines a number of masks, `EP_TAGS`, `EP_CATEGORIES`, and `EP_ALL` seem
 most useful.

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


More information about the wp-trac mailing list