mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Docs: First pass at some inline docs fixes mostly made by PHPCBF.
See #49572, #50744 git-svn-id: https://develop.svn.wordpress.org/trunk@48586 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -95,8 +95,8 @@ class WP_Roles {
|
||||
*
|
||||
* @since 4.0.0
|
||||
*
|
||||
* @param string $name Method to call.
|
||||
* @param array $arguments Arguments to pass when calling.
|
||||
* @param string $name Method to call.
|
||||
* @param array $arguments Arguments to pass when calling.
|
||||
* @return mixed|false Return value of the callback, false otherwise.
|
||||
*/
|
||||
public function __call( $name, $arguments ) {
|
||||
@@ -200,10 +200,10 @@ class WP_Roles {
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param string $role Role name.
|
||||
* @param string $cap Capability name.
|
||||
* @param bool $grant Optional. Whether role is capable of performing capability.
|
||||
* Default true.
|
||||
* @param string $role Role name.
|
||||
* @param string $cap Capability name.
|
||||
* @param bool $grant Optional. Whether role is capable of performing capability.
|
||||
* Default true.
|
||||
*/
|
||||
public function add_cap( $role, $cap, $grant = true ) {
|
||||
if ( ! isset( $this->roles[ $role ] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user