Skip to:
Content

BuddyPress.org

Changeset 11528


Ignore:
Timestamp:
04/07/2017 07:06:02 PM (3 years ago)
Author:
dcavins
Message:

Use new template function bp_group_link().

Use the new template function where appropriate.

See #7485.

Location:
trunk/src
Files:
4 edited

Legend:

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

    r11381 r11528  
    6363
    6464                <div class="item">
    65                     <div class="item-title"><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></div>
     65                    <div class="item-title"><?php bp_group_link(); ?></div>
    6666                    <div class="item-meta">
    6767                        <?php if ( 'newest-groups' === $_POST['filter'] ) : ?>
  • trunk/src/bp-groups/classes/class-bp-groups-widget.php

    r11381 r11528  
    136136
    137137                        <div class="item">
    138                             <div class="item-title"><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></div>
     138                            <div class="item-title"><?php bp_group_link(); ?></div>
    139139                            <div class="item-meta">
    140140                                <span class="activity">
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/groups-loop.php

    r11171 r11528  
    6363
    6464            <div class="item">
    65                 <div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div>
     65                <div class="item-title"><?php bp_group_link(); ?></div>
    6666                <div class="item-meta"><span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span></div>
    6767
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups/invites.php

    r11166 r11528  
    3232                <?php endif; ?>
    3333
    34                 <h4><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a><span class="small"> - <?php printf( _nx( '%d member', '%d members', bp_get_group_total_members( false ),'Group member count', 'buddypress' ), bp_get_group_total_members( false )  ); ?></span></h4>
     34                <h4><?php bp_group_link(); ?><span class="small"> - <?php printf( _nx( '%d member', '%d members', bp_get_group_total_members( false ),'Group member count', 'buddypress' ), bp_get_group_total_members( false )  ); ?></span></h4>
    3535
    3636                <p class="desc">
Note: See TracChangeset for help on using the changeset viewer.