Changeset 5951 for trunk/src/includes/core/capabilities.php
- Timestamp:
- 10/28/2015 04:07:50 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/capabilities.php (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/capabilities.php
r5908 r5951 20 20 * Returns an array of capabilities based on the role that is being requested. 21 21 * 22 * @since bbPress (r2994)22 * @since 2.0.0 bbPress (r2994) 23 23 * 24 24 * @todo Map all of these and deprecate … … 212 212 * Adds capabilities to WordPress user roles. 213 213 * 214 * @since bbPress (r2608)214 * @since 2.0.0 bbPress (r2608) 215 215 */ 216 216 function bbp_add_caps() { … … 229 229 * Removes capabilities from WordPress user roles. 230 230 * 231 * @since bbPress (r2608)231 * @since 2.0.0 bbPress (r2608) 232 232 */ 233 233 function bbp_remove_caps() { … … 246 246 * Get the `$wp_roles` global without needing to declare it everywhere 247 247 * 248 * @since bbPress (r4293)248 * @since 2.2.0 bbPress (r4293) 249 249 * 250 250 * @return WP_Roles … … 266 266 * Get the available roles minus bbPress's dynamic roles 267 267 * 268 * @since bbPress (r5064)268 * @since 2.4.0 bbPress (r5064) 269 269 * 270 270 * @uses bbp_get_wp_roles() To load and get the $wp_roles global … … 293 293 * We do this to avoid adding these values to the database. 294 294 * 295 * @since bbPress (r4290)295 * @since 2.2.0 bbPress (r4290) 296 296 * 297 297 * @uses bbp_get_wp_roles() To load and get the $wp_roles global … … 314 314 * Helper function to add filter to option_wp_user_roles 315 315 * 316 * @since bbPress (r4363)316 * @since 2.2.0 bbPress (r4363) 317 317 * 318 318 * @see _bbp_reinit_dynamic_roles() … … 340 340 * @see WP_Roles::_init() 341 341 * 342 * @since bbPress (r4363)342 * @since 2.2.0 bbPress (r4363) 343 343 * 344 344 * @internal Used by bbPress to reinitialize dynamic roles on blog switch … … 367 367 * user management. 368 368 * 369 * @since bbPress (r4284)369 * @since 2.2.0 bbPress (r4284) 370 370 * 371 371 * @return array … … 409 409 * Gets a translated role name from a role ID 410 410 * 411 * @since bbPress (r4792)411 * @since 2.3.0 bbPress (r4792) 412 412 * 413 413 * @param string $role_id … … 427 427 * Need to research what happened, and if there's a way to speed this up. 428 428 * 429 * @since bbPress (r4303)429 * @since 2.2.0 bbPress (r4303) 430 430 * 431 431 * @param array $all_roles All registered roles … … 453 453 * The keymaster role for bbPress users 454 454 * 455 * @since bbPress (r4284)455 * @since 2.2.0 bbPress (r4284) 456 456 * 457 457 * @uses apply_filters() Allow override of hardcoded keymaster role … … 465 465 * The moderator role for bbPress users 466 466 * 467 * @since bbPress (r3410)467 * @since 2.0.0 bbPress (r3410) 468 468 * 469 469 * @uses apply_filters() Allow override of hardcoded moderator role … … 477 477 * The participant role for registered user that can participate in forums 478 478 * 479 * @since bbPress (r3410)479 * @since 2.0.0 bbPress (r3410) 480 480 * 481 481 * @uses apply_filters() Allow override of hardcoded participant role … … 489 489 * The spectator role is for registered users without any capabilities 490 490 * 491 * @since bbPress (r3860)491 * @since 2.1.0 bbPress (r3860) 492 492 * 493 493 * @uses apply_filters() Allow override of hardcoded spectator role … … 501 501 * The blocked role is for registered users that cannot spectate or participate 502 502 * 503 * @since bbPress (r4284)503 * @since 2.2.0 bbPress (r4284) 504 504 * 505 505 * @uses apply_filters() Allow override of hardcoded blocked role … … 513 513 * Adds bbPress-specific user roles. 514 514 * 515 * @since bbPress (r2741) 516 * @deprecated since version 2.2 515 * @since 2.0.0 bbPress (r2741) 516 * 517 * @deprecated 2.2.0 bbPress (r4164) 517 518 */ 518 519 function bbp_add_roles() { … … 529 530 * @see bbp_version_updater() 530 531 * 531 * @since bbPress (r2741)532 * @since 2.0.0 bbPress (r2741) 532 533 */ 533 534 function bbp_remove_roles() {
Note: See TracChangeset
for help on using the changeset viewer.