[wp-trac] [WordPress Trac] #29714: user_can_access_admin_page() returning false for edit.php?post_type=CPT
WordPress Trac
noreply at wordpress.org
Sat Oct 11 12:49:55 UTC 2014
#29714: user_can_access_admin_page() returning false for edit.php?post_type=CPT
-----------------------------------------+------------------------------
Reporter: bobbingwide | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 4.0
Severity: normal | Resolution:
Keywords: has-patch reporter-feedback | Focuses:
-----------------------------------------+------------------------------
Changes (by bobbingwide):
* keywords: has-patch => has-patch reporter-feedback
Comment:
I've just discovered that the change to the $pagenow global variable has
unwanted side effects during later processing. Certain action and filter
names get corrupted.
e.g. for a post_type of oik_site we get the following incorrect names
admin_footer-edit.php?post_type=oik_site
admin_head-edit.php?post_type=oik_site
admin_print_scripts-edit.php?post_type=oik_site
admin_print_styles-edit.php?post_type=oik_site
bulk_actions-edit.php?post_type=oik_site
get_user_option_manageedit.php?post_type=oik_sitecolumnshidden
load-edit.php?post_type=oik_site
manage_edit.php?post_type=oik_site_columns
manage_edit.php?post_type=oik_site_sortable_columns
views_edit.php?post_type=oik_site
In all cases the 'edit.php?post_type=' part of the name should just be
'edit-' or 'edit.php'
Obviously, some more work is needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29714#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list