Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#761 closed defect (bug) (no action required)

Error to order friends alphabetically bp-friends/bp-friends-templatetags.php

Reported by: crishnakh2's profile crishnakh2 Owned by:
Milestone: Priority: critical
Severity: Version:
Component: Keywords: friends, alphabetically
Cc:

Description

To bugs on bp-friends/bp-friends-templatetags.php
Round line 165:

if ( 'my-friends' == $bp->current_action ) {

$order = $bp->action_variables[0];
if ( 'newest' == $order )

$type = 'newest';

else if ( 'alphabetically' == $order )

THIS LINE --> $type = 'alphabetical';
CHANGE --> $type = alphabetically';

} else if ( 'requests' == $bp->current_action ) {

$type = 'requests';

}


On line 374 double ""

<li<?php if ( 'alphabetically' == $bp->action_variables[0] ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . $bp->friends->slug ?>/my-friends/alphabetically""><?php _e( 'Alphabetically', 'buddypress' ) ?></a></li>

Change History (2)

#1 @apeatling
15 years ago

  • Resolution set to invalid
  • Status changed from new to closed

This is correct as it - the internal filter name differs from the URL name.

#2 @(none)
15 years ago

  • Milestone Friends 1.1 deleted

Milestone Friends 1.1 deleted

Note: See TracTickets for help on using tickets.