Ticket #8890: 8890.3.patch
| File 8890.3.patch, 13.1 KB (added by , 3 years ago) |
|---|
-
src/bp-groups/bp-groups-activity.php
265 265 * 266 266 * @param array $activities Array of activity items. 267 267 * @return array 268 * 269 * @global wpdb $wpdb WordPress database object. 268 270 */ 269 271 function bp_groups_prefetch_activity_object_data( $activities ) { 270 272 $group_ids = array(); -
src/bp-groups/bp-groups-functions.php
2472 2472 * metadata entries for the specified group. 2473 2473 * Default: false. 2474 2474 * @return bool True on success, false on failure. 2475 * @global wpdb $wpdb WordPress database object. 2475 2476 */ 2476 2477 function groups_delete_groupmeta( $group_id, $meta_key = false, $meta_value = false, $delete_all = false ) { 2477 2478 global $wpdb; … … 3610 3611 * Migrate invitations and requests from pre-5.0 group_members table to invitations table. 3611 3612 * 3612 3613 * @since 5.0.0 3614 * @global wpdb $wpdb WordPress database object. 3613 3615 */ 3614 3616 function bp_groups_migrate_invitations() { 3615 3617 global $wpdb; -
src/bp-groups/bp-groups-template.php
458 458 * information is needed in the loop. Otherwise false. 459 459 * } 460 460 * @return bool True if there are groups to display that match the params 461 * @global BP_Groups_Template $groups_template The main Groups template loop class. 461 462 */ 462 463 function bp_has_groups( $args = '' ) { 463 464 global $groups_template; … … 591 592 * @since 1.0.0 592 593 * 593 594 * @return bool 595 * @global BP_Groups_Template $groups_template The main Groups template loop class. 594 596 */ 595 597 function bp_groups() { 596 598 global $groups_template; … … 603 605 * @since 1.0.0 604 606 * 605 607 * @return BP_Groups_Group 608 * @global BP_Groups_Template $groups_template The main Groups template loop class. 606 609 */ 607 610 function bp_the_group() { 608 611 global $groups_template; … … 698 701 * 699 702 * @param array $classes Array of custom classes. 700 703 * @return string Row class of the group. 704 * 705 * @global BP_Groups_Template $groups_template The main Groups template loop class. 701 706 */ 702 707 function bp_get_group_class( $classes = array() ) { 703 708 global $groups_template; … … 2090 2095 * @since 1.2.0 2091 2096 * 2092 2097 * @return string 2098 * @global BP_Groups_Template $groups_template The main Groups template loop class. 2093 2099 */ 2094 2100 function bp_get_groups_pagination_links() { 2095 2101 global $groups_template; … … 2118 2124 * @since 1.5.0 2119 2125 * 2120 2126 * @return string 2127 * @global BP_Groups_Template $groups_template The main Groups template loop class. 2121 2128 */ 2122 2129 function bp_get_groups_pagination_count() { 2123 2130 global $groups_template; … … 2509 2516 * @type object $group Group object. Default: current group. 2510 2517 * } 2511 2518 * @return string 2519 * 2520 * @global BP_Groups_Template $groups_template The main Groups template loop class. 2521 * @global BP_Core_Members_Template $members_template The main member template loop class. 2512 2522 */ 2513 2523 function bp_get_group_member_promote_mod_link( $args = '' ) { 2514 2524 global $members_template, $groups_template; … … 2561 2571 * @type object $group Group object. Default: current group. 2562 2572 * } 2563 2573 * @return string 2574 * 2575 * @global BP_Core_Members_Template $members_template The main member template loop class. 2576 * @global BP_Groups_Template $groups_template The main Groups template loop class. 2564 2577 */ 2565 2578 function bp_get_group_member_promote_admin_link( $args = '' ) { 2566 2579 global $members_template, $groups_template; … … 2615 2628 * @param false|int|string|BP_Groups_Group $group (Optional) The Group ID, the Group Slug or the Group object. 2616 2629 * Default: false. 2617 2630 * @return string 2631 * @global BP_Core_Members_Template $members_template The main member template loop class. 2618 2632 */ 2619 2633 function bp_get_group_member_demote_link( $user_id = 0, $group = false ) { 2620 2634 global $members_template; … … 2668 2682 * @param false|int|string|BP_Groups_Group $group (Optional) The Group ID, the Group Slug or the Group object. 2669 2683 * Default: false. 2670 2684 * @return string 2685 * @global BP_Core_Members_Template $members_template The main member template loop class. 2671 2686 */ 2672 2687 function bp_get_group_member_ban_link( $user_id = 0, $group = false ) { 2673 2688 global $members_template; … … 2720 2735 * @param false|int|string|BP_Groups_Group $group (Optional) The Group ID, the Group Slug or the Group object. 2721 2736 * Default: false. 2722 2737 * @return string 2738 * @global BP_Core_Members_Template $members_template The main member template loop class. 2723 2739 */ 2724 2740 function bp_get_group_member_unban_link( $user_id = 0, $group = false ) { 2725 2741 global $members_template; … … 2772 2788 * @param false|int|string|BP_Groups_Group $group (Optional) The Group ID, the Group Slug or the Group object. 2773 2789 * Default: false. 2774 2790 * @return string 2791 * @global BP_Core_Members_Template $members_template The main member template loop class. 2775 2792 */ 2776 2793 function bp_get_group_member_remove_link( $user_id = 0, $group = false ) { 2777 2794 global $members_template; … … 2809 2826 * 2810 2827 * @param object|bool $group Optional. Group object. 2811 2828 * Default: current group in the loop. 2829 * 2830 * @global BP_Groups_Template $groups_template The main Groups template loop class. 2812 2831 */ 2813 2832 function bp_group_admin_tabs( $group = false ) { 2814 2833 global $groups_template; … … 3071 3090 * @param object|bool $group Optional. Group data object. 3072 3091 * Default: the current group in the groups loop. 3073 3092 * @return bool True if the user has an outstanding invite, otherwise false. 3093 * 3094 * @global BP_Groups_Template $groups_template The main Groups template loop class. 3074 3095 */ 3075 3096 function bp_group_is_invited( $group = false ) { 3076 3097 global $groups_template; … … 3171 3192 * @param object|bool $group Optional. Group object. 3172 3193 * Default: Current group in the loop. 3173 3194 * @return string 3195 * 3196 * @global BP_Groups_Template $groups_template The main Groups template loop class. 3174 3197 */ 3175 3198 function bp_get_group_accept_invite_link( $group = false ) { 3176 3199 global $groups_template; … … 3222 3245 * @param object|bool $group Optional. Group object. 3223 3246 * Default: Current group in the loop. 3224 3247 * @return string 3248 * 3249 * @global BP_Groups_Template $groups_template The main Groups template loop class. 3225 3250 */ 3226 3251 function bp_get_group_reject_invite_link( $group = false ) { 3227 3252 global $groups_template; … … 3273 3298 * @param object|bool $group Optional. Group object. 3274 3299 * Default: Current group in the loop. 3275 3300 * @return string 3301 * 3302 * @global BP_Groups_Template $groups_template The main Groups template loop class. 3276 3303 */ 3277 3304 function bp_get_group_leave_confirm_link( $group = false ) { 3278 3305 global $groups_template; … … 3317 3344 * @param object|bool $group Optional. Group object. 3318 3345 * Default: Current group in the loop. 3319 3346 * @return string 3347 * 3348 * @global BP_Groups_Template $groups_template The main Groups template loop class. 3320 3349 */ 3321 3350 function bp_get_group_leave_reject_link( $group = false ) { 3322 3351 global $groups_template; … … 3353 3382 * @param object|bool $group Optional. Group object. 3354 3383 * Default: current group in the loop. 3355 3384 * @return string 3385 * 3386 * @global BP_Groups_Template $groups_template The main Groups template loop class. 3356 3387 */ 3357 3388 function bp_get_group_send_invite_form_action( $group = false ) { 3358 3389 global $groups_template; … … 3386 3417 * @param object|bool $group Optional. Group object. 3387 3418 * Default: current group in the loop. 3388 3419 * @return bool 3420 * 3421 * @global BP_Groups_Template $groups_template The main Groups template loop class. 3389 3422 */ 3390 3423 function bp_has_friends_to_invite( $group = false ) { 3391 3424 global $groups_template; … … 3585 3618 * 3586 3619 * @param object|bool $group Single group object. 3587 3620 * @return false|string 3621 * 3622 * @global BP_Groups_Template $groups_template The main Groups template loop class. 3588 3623 */ 3589 3624 function bp_get_group_join_button( $group = false ) { 3590 3625 global $groups_template; … … 3887 3922 * } 3888 3923 * 3889 3924 * @return bool 3925 * 3926 * @global BP_Core_Members_Template $members_template The main member template loop class. 3890 3927 */ 3891 3928 function bp_group_has_members( $args = '' ) { 3892 3929 global $members_template; … … 3952 3989 * @since 1.0.0 3953 3990 * 3954 3991 * @return mixed 3992 * 3993 * @global BP_Core_Members_Template $members_template The main member template loop class. 3955 3994 */ 3956 3995 function bp_group_members() { 3957 3996 global $members_template; … … 3963 4002 * @since 1.0.0 3964 4003 * 3965 4004 * @return mixed 4005 * 4006 * @global BP_Core_Members_Template $members_template The main member template loop class. 3966 4007 */ 3967 4008 function bp_group_the_member() { 3968 4009 global $members_template; … … 3987 4028 * 3988 4029 * @param array|string $args {@see bp_core_fetch_avatar()}. 3989 4030 * @return string 4031 * 4032 * @global BP_Core_Members_Template $members_template The main member template loop class. 3990 4033 */ 3991 4034 function bp_get_group_member_avatar( $args = '' ) { 3992 4035 global $members_template; … … 4030 4073 * 4031 4074 * @param array|string $args {@see bp_core_fetch_avatar()}. 4032 4075 * @return string 4076 * 4077 * @global BP_Core_Members_Template $members_template The main member template loop class. 4033 4078 */ 4034 4079 function bp_get_group_member_avatar_thumb( $args = '' ) { 4035 4080 global $members_template; … … 4075 4120 * @param int $width Width of avatar to fetch. 4076 4121 * @param int $height Height of avatar to fetch. 4077 4122 * @return string 4123 * 4124 * @global BP_Core_Members_Template $members_template The main member template loop class. 4078 4125 */ 4079 4126 function bp_get_group_member_avatar_mini( $width = 30, $height = 30 ) { 4080 4127 global $members_template; … … 4113 4160 * @since 1.0.0 4114 4161 * 4115 4162 * @return mixed|void 4163 * 4164 * @global BP_Core_Members_Template $members_template The main member template loop class. 4116 4165 */ 4117 4166 function bp_get_group_member_name() { 4118 4167 global $members_template; … … 4137 4186 * @since 1.0.0 4138 4187 * 4139 4188 * @return mixed|void 4189 * 4190 * @global BP_Core_Members_Template $members_template The main member template loop class. 4140 4191 */ 4141 4192 function bp_get_group_member_url() { 4142 4193 global $members_template; … … 4161 4212 * @since 1.0.0 4162 4213 * 4163 4214 * @return mixed|void 4215 * 4216 * @global BP_Core_Members_Template $members_template The main member template loop class. 4164 4217 */ 4165 4218 function bp_get_group_member_link() { 4166 4219 global $members_template; … … 4185 4238 * @since 1.2.0 4186 4239 * 4187 4240 * @return mixed|void 4241 * 4242 * @global BP_Core_Members_Template $members_template The main member template loop class. 4188 4243 */ 4189 4244 function bp_get_group_member_domain() { 4190 4245 global $members_template; … … 4209 4264 * @since 1.2.0 4210 4265 * 4211 4266 * @return mixed|void 4267 * 4268 * @global BP_Core_Members_Template $members_template The main member template loop class. 4212 4269 */ 4213 4270 function bp_get_group_member_is_friend() { 4214 4271 global $members_template; … … 4245 4302 * @since 1.0.0 4246 4303 * 4247 4304 * @return bool 4305 * 4306 * @global BP_Core_Members_Template $members_template The main member template loop class. 4248 4307 */ 4249 4308 function bp_get_group_member_is_banned() { 4250 4309 global $members_template; … … 4308 4367 * If false, returns joined date value from database. Default: true. 4309 4368 * } 4310 4369 * @return string 4370 * 4371 * @global BP_Core_Members_Template $members_template The main member template loop class. 4311 4372 */ 4312 4373 function bp_get_group_member_joined_since( $args = array() ) { 4313 4374 global $members_template; … … 4357 4418 * @since 1.0.0 4358 4419 * 4359 4420 * @return int 4421 * 4422 * @global BP_Core_Members_Template $members_template The main member template loop class. 4360 4423 */ 4361 4424 function bp_get_group_member_id() { 4362 4425 global $members_template; … … 4379 4442 * @since 1.0.0 4380 4443 * 4381 4444 * @return bool 4445 * 4446 * @global BP_Core_Members_Template $members_template The main member template loop class. 4382 4447 */ 4383 4448 function bp_group_member_needs_pagination() { 4384 4449 global $members_template; … … 4420 4485 * @since 1.0.0 4421 4486 * 4422 4487 * @return mixed|void 4488 * 4489 * @global BP_Core_Members_Template $members_template The main member template loop class. 4423 4490 */ 4424 4491 function bp_get_group_member_pagination() { 4425 4492 global $members_template; … … 4444 4511 * @since 1.0.0 4445 4512 * 4446 4513 * @return mixed|void 4514 * 4515 * @global BP_Core_Members_Template $members_template The main member template loop class. 4447 4516 */ 4448 4517 function bp_get_group_member_pagination_count() { 4449 4518 global $members_template; … … 4484 4553 * @since 1.0.0 4485 4554 * 4486 4555 * @return mixed 4556 * 4557 * @global BP_Core_Members_Template $members_template The main member template loop class. 4487 4558 */ 4488 4559 function bp_get_group_member_admin_pagination() { 4489 4560 global $members_template;