diff --git bp-activity/bp-activity-admin.php bp-activity/bp-activity-admin.php
index ab88d81..86f2457 100644
|
|
class BP_Activity_List_Table extends WP_List_Table { |
1127 | 1127 | * @since BuddyPress (1.6) |
1128 | 1128 | */ |
1129 | 1129 | function get_views() { |
1130 | | $redirect_to = remove_query_arg( array( 'activity_status', 'aid', 'deleted', 'error', 'spammed', 'unspammed', 'updated', ), $_SERVER['REQUEST_URI'] ); |
1131 | | ?> |
| 1130 | $url_base = bp_get_admin_url( 'admin.php?page=bp-activity' ); ?> |
| 1131 | |
1132 | 1132 | <ul class="subsubsub"> |
1133 | | <li class="all"><a href="<?php echo esc_attr( esc_url( $redirect_to ) ); ?>" class="<?php if ( 'spam' != $this->view ) echo 'current'; ?>"><?php _e( 'All', 'buddypress' ); ?></a> |</li> |
1134 | | <li class="spam"><a href="<?php echo esc_attr( esc_url( add_query_arg( 'activity_status', 'spam', $redirect_to ) ) ); ?>" class="<?php if ( 'spam' == $this->view ) echo 'current'; ?>"><?php printf( __( 'Spam <span class="count">(%s)</span>', 'buddypress' ), number_format_i18n( $this->spam_count ) ); ?></a></li> |
| 1133 | <li class="all"><a href="<?php echo esc_attr( esc_url( $url_base ) ); ?>" class="<?php if ( 'spam' != $this->view ) echo 'current'; ?>"><?php _e( 'All', 'buddypress' ); ?></a> |</li> |
| 1134 | <li class="spam"><a href="<?php echo esc_attr( esc_url( add_query_arg( 'activity_status', 'spam', $url_base ) ) ); ?>" class="<?php if ( 'spam' == $this->view ) echo 'current'; ?>"><?php printf( __( 'Spam <span class="count">(%s)</span>', 'buddypress' ), number_format_i18n( $this->spam_count ) ); ?></a></li> |
1135 | 1135 | |
1136 | | <?php do_action( 'bp_activity_list_table_get_views', $redirect_to, $this->view ); ?> |
| 1136 | <?php do_action( 'bp_activity_list_table_get_views', $url_base, $this->view ); ?> |
1137 | 1137 | </ul> |
1138 | 1138 | <?php |
1139 | 1139 | } |
diff --git bp-groups/bp-groups-admin.php bp-groups/bp-groups-admin.php
index 68cd3d0..067f406 100644
|
|
class BP_Groups_List_Table extends WP_List_Table { |
1133 | 1133 | * @since BuddyPress (1.7) |
1134 | 1134 | */ |
1135 | 1135 | function get_views() { |
1136 | | $url_base = remove_query_arg( array( 'orderby', 'order', 'group_status' ), $_SERVER['REQUEST_URI'] ); ?> |
| 1136 | $url_base = bp_get_admin_url( 'admin.php?page=bp-groups' ); ?> |
| 1137 | |
1137 | 1138 | <ul class="subsubsub"> |
1138 | 1139 | <li class="all"><a href="<?php echo esc_attr( esc_url( $url_base ) ); ?>" class="<?php if ( 'all' == $this->view ) echo 'current'; ?>"><?php _e( 'All', 'buddypress' ); ?></a> |</li> |
1139 | 1140 | <li class="public"><a href="<?php echo esc_attr( esc_url( add_query_arg( 'group_status', 'public', $url_base ) ) ); ?>" class="<?php if ( 'public' == $this->view ) echo 'current'; ?>"><?php printf( __( 'Public <span class="count">(%s)</span>', 'buddypress' ), number_format_i18n( $this->group_counts['public'] ) ); ?></a> |</li> |