[wp-trac] Re: [WordPress Trac] #8433: Profile contains options that
don't apply to users with "subscriber" role
WordPress Trac
wp-trac at lists.automattic.com
Thu May 28 19:31:28 GMT 2009
#8433: Profile contains options that don't apply to users with "subscriber" role
-------------------------+--------------------------------------------------
Reporter: jivany | Owner: Denis-de-Bernardy
Type: enhancement | Status: reopened
Priority: normal | Milestone: 2.8
Component: UI | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+--------------------------------------------------
Changes (by wnorris):
* keywords: has-patch tested commit => has-patch
* status: closed => reopened
* resolution: fixed =>
Comment:
the capabilities 'edit_post' and 'edit_page' expect to be passed a
specific post ID. If absent you get notices like:
`Notice: Trying to get property of non-object in .../wp-
includes/capabilities.php on line 822`
The correct capabilities to use are 'edit_posts' and 'edit_pages'
(plural). Patch attached.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8433#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list