Skip to:
Content

BuddyPress.org

Changeset 13293


Ignore:
Timestamp:
07/06/2022 10:12:18 AM (2 years ago)
Author:
imath
Message:

Remove unnecessary 4th argument when using bp_core_get_userlink()

bp_core_get_userlink() only accepts 3 arguments.

Props oztaser

See #8635

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-notifications.php

    r13273 r13293  
    359359            'group.url'      => bp_get_group_permalink( $group ),
    360360            'group.name'     => $group->name,
    361             'inviter.name'   => bp_core_get_userlink( $inviter_user_id, true, false, true ),
     361            'inviter.name'   => bp_core_get_userlink( $inviter_user_id, true, false ),
    362362            'inviter.url'    => bp_core_get_user_domain( $inviter_user_id ),
    363363            'inviter.id'     => $inviter_user_id,
  • trunk/src/bp-members/bp-members-functions.php

    r13255 r13293  
    538538     * @param string|bool $value URL for the user if found, otherwise false.
    539539     */
    540     return apply_filters( 'bp_core_get_userlink_by_email', bp_core_get_userlink( $user->ID, false, false, true ) );
     540    return apply_filters( 'bp_core_get_userlink_by_email', bp_core_get_userlink( $user->ID, false, false ) );
    541541}
    542542
     
    565565     * @param string|bool $value URL for the user if found, otherwise false.
    566566     */
    567     return apply_filters( 'bp_core_get_userlink_by_username', bp_core_get_userlink( $user_id, false, false, true ) );
     567    return apply_filters( 'bp_core_get_userlink_by_username', bp_core_get_userlink( $user_id, false, false ) );
    568568}
    569569
  • trunk/src/bp-members/classes/class-bp-members-invitation-manager.php

    r12933 r13293  
    7373            $args = array(
    7474                'tokens' => array(
    75                     'inviter.name'      => bp_core_get_userlink( $invitation->inviter_id, true, false, true ),
     75                    'inviter.name'      => bp_core_get_userlink( $invitation->inviter_id, true, false ),
    7676                    'inviter.url'       => bp_core_get_user_domain( $invitation->inviter_id ),
    7777                    'inviter.id'        => $invitation->inviter_id,
Note: See TracChangeset for help on using the changeset viewer.