Skip to:
Content

BuddyPress.org

Changeset 13277


Ignore:
Timestamp:
04/30/2022 06:24:54 AM (3 years ago)
Author:
imath
Message:

BP Nouveau: improve member's header private message button

Avoid code duplication when generating this button link by using the available specific template function to do so: bp_get_send_private_message_link().

Fixes #8692 (branch 10.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/10.0/src/bp-templates/bp-nouveau/includes/members/template-tags.php

    r12979 r13277  
    44 *
    55 * @since 3.0.0
    6  * @version 9.0.0
     6 * @version 10.3.0
    77 */
    88
     
    450450                        ),
    451451                        'button_attr'       => array(
    452                             'href'  => trailingslashit( bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'messages' ) ) . 'compose?r=' . bp_core_get_username( $user_id ),
     452                            'href'  => bp_get_send_private_message_link(),
    453453                            'id'    => false,
    454454                            'class' => $button_args['link_class'],
Note: See TracChangeset for help on using the changeset viewer.