Changeset 7361
- Timestamp:
- 11/16/2025 11:04:14 PM (2 months ago)
- Location:
- trunk/src/includes
- Files:
-
- 13 edited
-
admin/classes/class-bbp-admin.php (modified) (1 diff)
-
admin/common.php (modified) (1 diff)
-
admin/forums.php (modified) (4 diffs)
-
admin/metaboxes.php (modified) (1 diff)
-
admin/replies.php (modified) (4 diffs)
-
admin/tools.php (modified) (1 diff)
-
admin/tools/converter.php (modified) (2 diffs)
-
common/ajax.php (modified) (1 diff)
-
common/shortcodes.php (modified) (1 diff)
-
core/template-loader.php (modified) (1 diff)
-
extend/buddypress/groups.php (modified) (1 diff)
-
replies/capabilities.php (modified) (2 diffs)
-
users/signups.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/classes/class-bbp-admin.php
r7360 r7361 692 692 } 693 693 694 // Filter & return 694 /** 695 * Filters the mapped Settings capabilities. 696 * 697 * @since 2.2.0 698 * 699 * @param array $caps The capabilities for meta capability. 700 * @param string $cap Capability name. 701 * @param int $user_id User ID. 702 * @param array $args Arguments. 703 */ 695 704 return (array) apply_filters( 'bbp_map_settings_meta_caps', $caps, $cap, $user_id, $args ); 696 705 } -
trunk/src/includes/admin/common.php
r6780 r7361 140 140 $value = rtrim( $value, '/' ); 141 141 142 // Filter & return 142 /** 143 * Filters the sanitized slug value. 144 * 145 * @since 2.6.0 bbPress (r5364) 146 * 147 * @param string $value The sanitized slug. 148 * @param string $slug The original slug value. 149 */ 143 150 return apply_filters( 'bbp_sanitize_slug', $value, $slug ); 144 151 } -
trunk/src/includes/admin/forums.php
r7360 r7361 483 483 private function get_row_action_sort_order() { 484 484 485 // Filter & return 485 /** 486 * Filters the row action sort order. 487 * 488 * @since 2.6.0 bbPress (r6771) 489 * 490 * @param array $order The default sort order. 491 */ 486 492 return (array) apply_filters( 'bbp_admin_forum_row_action_sort_order', array( 487 493 'edit', … … 503 509 private function get_allowed_notice_toggles() { 504 510 505 // Filter & return 506 return apply_filters( 'bbp_admin_forums_allowed_notice_toggles', array( 511 /** 512 * Filters the allowed notice toggles. 513 * 514 * @since 2.6.0 bbPress (r6396) 515 * 516 * @param array $toggles The default notice toggles. 517 */ 518 return (array) apply_filters( 'bbp_admin_forums_allowed_notice_toggles', array( 507 519 'opened', 508 520 'closed' … … 519 531 private function get_allowed_action_toggles() { 520 532 521 // Filter & return 533 /** 534 * Filters the allowed action toggles. 535 * 536 * @since 2.6.0 bbPress (r6396) 537 * 538 * @param array $toggles The default action toggles. 539 */ 522 540 return apply_filters( 'bbp_admin_forums_allowed_action_toggles', array( 523 541 'bbp_toggle_forum_close' … … 553 571 } 554 572 555 // Filter & return 556 return apply_filters( 'bbp_admin_forums_column_headers', $columns ); 573 /** 574 * Filters the column headers for the forums page. 575 * 576 * @since 2.0.0 bbPress (r2485) 577 * 578 * @param array $columns The column headers. 579 */ 580 return (array) apply_filters( 'bbp_admin_forums_column_headers', $columns ); 557 581 } 558 582 -
trunk/src/includes/admin/metaboxes.php
r7360 r7361 88 88 } 89 89 90 // Filter & return 91 return apply_filters( 'bbp_dashboard_at_a_glance', $elements, $r ); 90 /** 91 * Filters the "at a glance" dashboard items. 92 * 93 * @since 2.6.0 94 * 95 * @param array $elements The existing "at a glance" dashboard items. 96 * @param array $r The statistics array. 97 */ 98 return (array) apply_filters( 'bbp_dashboard_at_a_glance', $elements, $r ); 92 99 } 93 100 -
trunk/src/includes/admin/replies.php
r7360 r7361 612 612 private function get_row_action_sort_order() { 613 613 614 // Filter & return 614 /** 615 * Filters the row action sort order for replies. 616 * 617 * @since 2.6.0 bbPress (r6771) 618 * 619 * @param array $order The default sort order. 620 */ 615 621 return (array) apply_filters( 'bbp_admin_reply_row_action_sort_order', array( 616 622 'edit', … … 635 641 private function get_allowed_notice_toggles() { 636 642 637 // Filter & return 638 return apply_filters( 'bbp_admin_replies_allowed_notice_toggles', array( 643 /** 644 * Filters the allowed notice toggles for replies. 645 * 646 * @since 2.6.0 bbPress (r6396) 647 * 648 * @param array $toggles The default notice toggles. 649 */ 650 return (array) apply_filters( 'bbp_admin_replies_allowed_notice_toggles', array( 639 651 'spammed', 640 652 'unspammed', … … 653 665 private function get_allowed_action_toggles() { 654 666 655 // Filter & return 656 return apply_filters( 'bbp_admin_replies_allowed_action_toggles', array( 667 /** 668 * Filters the allowed action toggles for replies. 669 * 670 * @since 2.6.0 bbPress (r6396) 671 * 672 * @param array $toggles The default action toggles. 673 */ 674 return (array) apply_filters( 'bbp_admin_replies_allowed_action_toggles', array( 657 675 'bbp_toggle_reply_spam', 658 676 'bbp_toggle_reply_approve' … … 679 697 ); 680 698 681 // Filter & return 682 return apply_filters( 'bbp_admin_replies_column_headers', $columns ); 699 /** 700 * Filters the column headers for the replies page. 701 * 702 * @since 2.0.0 bbPress (r2577) 703 * 704 * @param array $columns The column headers. 705 */ 706 return (array) apply_filters( 'bbp_admin_replies_column_headers', $columns ); 683 707 } 684 708 -
trunk/src/includes/admin/tools.php
r7006 r7361 515 515 $tools_url = admin_url( 'tools.php' ); 516 516 517 // Filter & return 517 /** 518 * Filters the tools admin pages. 519 * 520 * @since 2.6.0 bbPress (r6273) 521 * 522 * @param array $pages The default array of tools pages. 523 */ 518 524 return (array) apply_filters( 'bbp_tools_admin_tabs', array( 519 525 array( -
trunk/src/includes/admin/tools/converter.php
r7046 r7361 51 51 } 52 52 53 // Filter & return 53 /** 54 * Filters the array of available converters. 55 * 56 * @since 2.6.0 bbPress (r6447) 57 * 58 * @param array $files Array of available converters with names as keys and file paths as values. 59 */ 54 60 return (array) apply_filters( 'bbp_get_converters', $files ); 55 61 } … … 96 102 } 97 103 98 // Filter & return 104 /** 105 * Filters the newly created converter object. 106 * 107 * @since 2.0.0 108 * 109 * @param mixed $converter The converter object if it exists, null otherwise. 110 * @param string $platform Name of the platform class used for conversion. 111 */ 99 112 return apply_filters( 'bbp_new_converter', $converter, $platform ); 100 113 } -
trunk/src/includes/common/ajax.php
r6871 r7361 38 38 $ajaxurl = add_query_arg( array( 'bbp-ajax' => 'true' ), $base_url ); 39 39 40 // Filter & return 40 /** 41 * Filters the URL used for theme-side bbPress AJAX requests. 42 * 43 * @since 2.3.0 bbPress (r4543) 44 * 45 * @param string $ajaxurl The URL for bbPress AJAX requests. 46 * @return string The filtered URL for bbPress AJAX requests. 47 */ 41 48 return apply_filters( 'bbp_get_ajax_url', $ajaxurl ); 42 49 } -
trunk/src/includes/common/shortcodes.php
r7357 r7361 173 173 $output = ob_get_clean(); 174 174 175 // Filter & return 175 /** 176 * Filters the contents of the output buffer before returning. 177 * 178 * @since 2.0.0 bbPress (r3079) 179 * 180 * @param string $output The contents of the output buffer. 181 * @param string $query_name The query name used for this output. 182 */ 176 183 return apply_filters( 'bbp_display_shortcode', $output, $query_name ); 177 184 } -
trunk/src/includes/core/template-loader.php
r7357 r7361 93 93 } 94 94 95 // Filter & return 95 /** 96 * Filters the path to the template file that is being used. 97 * 98 * @since 2.0.0 bbPress (r3032) 99 * 100 * @param string $template The path to the template file. 101 */ 96 102 return apply_filters( 'bbp_template_include_theme_supports', $template ); 97 103 } -
trunk/src/includes/extend/buddypress/groups.php
r7360 r7361 304 304 } 305 305 306 // Filter & return 306 /** 307 * Filters the Group Forum Topic meta capabilities. 308 * 309 * @since 2.2.0 bbPress (r4434) 310 * 311 * @param array $caps Capabilities for the meta capability. 312 * @param string $cap Capability name. 313 * @param int $user_id User ID. 314 * @param array $args Arguments. 315 */ 307 316 return (array) apply_filters( 'bbp_map_group_forum_topic_meta_caps', $caps, $cap, $user_id, $args ); 308 317 } -
trunk/src/includes/replies/capabilities.php
r7350 r7361 19 19 function bbp_get_reply_caps() { 20 20 21 // Filter & return 21 /** 22 * Filters the reply capabilities. 23 * 24 * @since 2.0.0 25 * 26 * @param array $caps An array of reply capabilities with keys mapping to WordPress capabilities. 27 */ 22 28 return (array) apply_filters( 'bbp_get_reply_caps', array( 23 29 'edit_posts' => 'edit_replies', … … 237 243 } 238 244 239 // Filter & return 245 /** 246 * Filters the Reply meta capabilities. 247 * 248 * @since 2.2.0 bbPress (r4242) 249 * 250 * @param array $caps The current capabilities being checked. 251 * @param string $cap The capability being checked. 252 * @param int $user_id The ID of the user whose capabilities are being checked. 253 * @param array $args Additional arguments provided for the capability check. 254 */ 240 255 return (array) apply_filters( 'bbp_map_reply_meta_caps', $caps, $cap, $user_id, $args ); 241 256 } -
trunk/src/includes/users/signups.php
r7098 r7361 234 234 } 235 235 236 // Filter & return 236 /** 237 * Filters the validated signup role. 238 * 239 * @since 2.6.5 240 * 241 * @param string $retval The valid role ID if validation passes; otherwise, an empty string. 242 * @param string $to_validate The role ID that was validated. 243 */ 237 244 return (string) apply_filters( 'bbp_validate_signup_role', $retval, $to_validate ); 238 245 }
Note: See TracChangeset
for help on using the changeset viewer.