[wp-trac] [WordPress Trac] #15437: Custom Post Type's capability_type and taxonomies used with the post type not considered when calling admin-ajax.php
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 15 23:49:49 UTC 2010
#15437: Custom Post Type's capability_type and taxonomies used with the post type
not considered when calling admin-ajax.php
----------------------------+-----------------------------------------------
Reporter: trabaria | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.1
Severity: critical | Keywords: capability_type, post_type, admin-ajax, get-tagcloud, ajax-tag-search
----------------------------+-----------------------------------------------
For ajax-tag-search and get-tagcloud in admin-ajax.php, the custom post
type with custom capability_type and taxonomies set to use with the post
type is never considered as '''''!current_user_can( 'edit_posts' )''''' is
hard coded. For example, a custom post type MY_CPT with custom
capability_type CPT allows users to have the capability edit_CPTs. A user
who '''cannot''' edit_posts, but '''can''' edit_CPTs will see -1 when
editing a MY_CPT post tags, if post_tags is in the array of taxonomies
used with the post type.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15437>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list