Changeset 11805 for trunk/src/bp-groups/bp-groups-template.php
- Timestamp:
- 01/10/2018 12:49:30 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-template.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-template.php
r11782 r11805 922 922 } 923 923 924 $r = wp_parse_args( $args, array(924 $r = bp_parse_args( $args, array( 925 925 'relative' => true, 926 ) );926 ), 'group_last_active' ); 927 927 928 928 $last_active = $group->last_activity; … … 1350 1350 global $groups_template; 1351 1351 1352 $r = wp_parse_args( $args, array(1352 $r = bp_parse_args( $args, array( 1353 1353 'relative' => true, 1354 ) );1354 ), 'group_date_created' ); 1355 1355 1356 1356 if ( empty( $group ) ) { … … 1558 1558 } 1559 1559 1560 $ defaults =array(1560 $r = bp_parse_args( $args, array( 1561 1561 'type' => 'full', 1562 1562 'width' => false, … … 1565 1565 'id' => false, 1566 1566 'alt' => sprintf( __( 'Group creator profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $group->creator_id ) ) 1567 ); 1568 1569 $r = wp_parse_args( $args, $defaults ); 1567 ), 'group_creator_avatar' ); 1570 1568 extract( $r, EXTR_SKIP ); 1571 1569 … … 2445 2443 global $members_template, $groups_template; 2446 2444 2447 $ defaults =array(2445 $r = bp_parse_args( $args, array( 2448 2446 'user_id' => $members_template->member->user_id, 2449 2447 'group' => &$groups_template->group 2450 ); 2451 2452 $r = wp_parse_args( $args, $defaults ); 2448 ), 'group_member_promote_mod_link' ); 2453 2449 extract( $r, EXTR_SKIP ); 2454 2450 … … 2488 2484 global $members_template, $groups_template; 2489 2485 2490 $ defaults =array(2486 $r = bp_parse_args( $args, array( 2491 2487 'user_id' => !empty( $members_template->member->user_id ) ? $members_template->member->user_id : false, 2492 2488 'group' => &$groups_template->group 2493 ); 2494 2495 $r = wp_parse_args( $args, $defaults ); 2489 ), 'group_member_promote_admin_link' ); 2496 2490 extract( $r, EXTR_SKIP ); 2497 2491 … … 3697 3691 } 3698 3692 3699 $r = wp_parse_args( $args, array(3693 $r = bp_parse_args( $args, array( 3700 3694 'group_id' => bp_get_current_group_id(), 3701 3695 'page' => 1, … … 3708 3702 'search_terms' => $search_terms_default, 3709 3703 'type' => 'last_joined', 3710 ) );3704 ), 'group_has_members' ); 3711 3705 3712 3706 /* … … 4083 4077 global $members_template; 4084 4078 4085 $r = wp_parse_args( $args, array(4079 $r = bp_parse_args( $args, array( 4086 4080 'relative' => true, 4087 ) );4081 ), 'group_member_joined_since' ); 4088 4082 4089 4083 // We do not want relative time, so return now. … … 5022 5016 5023 5017 // Parse arguments. 5024 $r = wp_parse_args( $args, array(5018 $r = bp_parse_args( $args, array( 5025 5019 'user_id' => bp_loggedin_user_id(), 5026 5020 'group_id' => false, 5027 5021 'separator' => 'li' 5028 ) );5022 ), 'group_invite_friend_list' ); 5029 5023 5030 5024 // No group passed, so look for new or current group ID's. … … 5374 5368 global $requests_template; 5375 5369 5376 $ defaults =array(5370 $r = bp_parse_args( $args, array( 5377 5371 'group_id' => bp_get_current_group_id(), 5378 5372 'per_page' => 10, 5379 5373 'page' => 1, 5380 5374 'max' => false 5381 ); 5382 5383 $r = wp_parse_args( $args, $defaults ); 5375 ), 'group_has_membership_requests' ); 5384 5376 5385 5377 $requests_template = new BP_Groups_Membership_Requests_Template( $r ); … … 5623 5615 global $invites_template, $group_id; 5624 5616 5625 $r = wp_parse_args( $args, array(5617 $r = bp_parse_args( $args, array( 5626 5618 'group_id' => false, 5627 5619 'user_id' => bp_loggedin_user_id(), 5628 5620 'per_page' => false, 5629 5621 'page' => 1, 5630 ) );5622 ), 'group_has_invites' ); 5631 5623 5632 5624 if ( empty( $r['group_id'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.