#761 closed defect (bug) (no action required)
Error to order friends alphabetically bp-friends/bp-friends-templatetags.php
Reported by: | 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>
This is correct as it - the internal filter name differs from the URL name.