Changeset 10012 for trunk/src/bp-core/bp-core-caps.php
- Timestamp:
- 07/12/2015 12:49:36 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-caps.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-caps.php
r9957 r10012 12 12 13 13 /** 14 * Return an array of roles from the currently loaded blog 14 * Return an array of roles from the currently loaded blog. 15 15 * 16 16 * WordPress roles are dynamically flipped when calls to switch_to_blog() and … … 133 133 * args. 134 134 * 135 * @param array $caps See {@link WP_User::has_cap()}. 136 * @param string $cap See {@link WP_User::has_cap()}. 137 * @param int $user_id See {@link WP_User::has_cap()}. 138 * @param mixed $args See {@link WP_User::has_cap()}. 135 * @param array $caps See {@link WP_User::has_cap()}. 136 * @param string $cap See {@link WP_User::has_cap()}. 137 * @param int $user_id See {@link WP_User::has_cap()}. 138 * @param mixed $args See {@link WP_User::has_cap()}. 139 * 139 140 * @return array Actual capabilities for meta capability. See {@link WP_User::has_cap()}. 140 141 */ … … 186 187 * 187 188 * @param string $role The role for which you're loading caps. 189 * 188 190 * @return array Capabilities for $role. 189 191 */ … … 273 275 * @type mixed $a,... Optional. Extra arguments applicable to the capability check. 274 276 * } 277 * 275 278 * @return bool True if the user has the cap for the given parameters. 276 279 */ … … 335 338 * @see WP_User::has_cap() 336 339 * 337 * @param array $allcaps The caps that WP associates with the given role. 338 * @param array $caps The caps being tested for in WP_User::has_cap(). 339 * @param array $args Miscellaneous arguments passed to the user_has_cap filter. 340 * @param array $caps The caps that WP associates with the given role. 341 * @param string $cap The caps being tested for in WP_User::has_cap(). 342 * @param int $user_id ID of the user being checked against. 343 * @param array $args Miscellaneous arguments passed to the user_has_cap filter. 344 * 340 345 * @return array $allcaps The user's cap list, with 'bp_moderate' appended, if relevant. 341 346 */
Note: See TracChangeset
for help on using the changeset viewer.