[wp-trac] [WordPress Trac] #21463: add create_posts capability (was: capability inconsistency)
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 4 20:33:06 UTC 2012
#21463: add create_posts capability
--------------------------+------------------------------
Reporter: eternalsword | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.4.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Changes (by eternalsword):
* type: defect (bug) => enhancement
Comment:
Okay, managed a few minutes today to take a fresh look. All my issues
were caused by trying to remove the Add New menu item from my custom post
prior to any changes I made to Wordpress code. In the admin_menu hook, I
used
{{{
unset($submenu['edit.php?post_type=my_post_type'][10]);
}}}
to remove it. This is what caused item 2 since initially the submenu had
two items and was reduced to one item which was removed because it was the
same as its $parent thus leading to an inconsistent state of $submenu.
Having a create_post capability in place would resolve this. Item 1 is
invalid.
I'm changing the summary and marking this as an enhancement request.
The create_posts capability would be used to determine if someone has the
ability to Add New.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21463#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list