[wp-trac] [WordPress Trac] #35080: Update documentation in return value for WP_Role has_cap() method
WordPress Trac
noreply at wordpress.org
Mon Dec 14 20:04:41 UTC 2015
#35080: Update documentation in return value for WP_Role has_cap() method
-----------------------------+---------------------------
Reporter: GunGeekATX | Owner: DrewAPicture
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.5
Component: Role/Capability | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
-----------------------------+---------------------------
Changes (by DrewAPicture):
* owner: => DrewAPicture
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"35935"]:
{{{
#!CommitTicketReference repository="" revision="35935"
Docs: Clarify documentation for `WP_Role::has_cap()` to more clearing
indicate that the method checks for capabilities against the role rather
than the user.
Also updates syntax in the DocBlock summary and description.
Props GunGeekATX for the initial patch.
Fixes #35080.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35080#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list