[wp-trac] [WordPress Trac] #12605: Unable to add Endpoints to custom post_types
WordPress Trac
wp-trac at lists.automattic.com
Sun Mar 14 09:48:41 UTC 2010
#12605: Unable to add Endpoints to custom post_types
---------------------------+------------------------------------------------
Reporter: dd32 | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Rewrite Rules | Version: 3.0
Severity: normal | Keywords:
---------------------------+------------------------------------------------
At present, Its impossible to add/apply Endpoints to custom post_type's
due to the Endpoint Mask being applied to the rule creation.
Patch coming up has 2 sections to it
* Adds support to add_endpoint() to specify a Endpoint mask to apply to
the rule, Defaults to EP_NONE as it currently does
* Changes WP_Rewrite::extra_permastructs from a String to an Array of
($rule, EP_MASK)
* Backwards compatibility is retained for anything which adds to that
directly..
* Adds support to register_post_type() to specify a "permalink_epmask"
arg, This defaults to EP_NONE as current
* Can be set to, for example, EP_PERMALINK for the same endpoints as
posts recieve
* Used in conjuction with Part 1 of this patch, It allows for a custom
value (For example, 2^15) to be passed with the post AND passed with a
Endpoint, The result is being able to register endpoints for a specific
custom post_type.
I suspect this also currently would render endpoints for taxonomies not
possible, but that would be a much less often used process
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12605>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list