Changeset 7175
- Timestamp:
- 06/06/2013 11:48:53 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-admin.php
r7166 r7175 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>1135 1136 <?php do_action( 'bp_activity_list_table_get_views', $ redirect_to, $this->view ); ?>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 1136 <?php do_action( 'bp_activity_list_table_get_views', $url_base, $this->view ); ?> 1137 1137 </ul> 1138 1138 <?php -
trunk/bp-groups/bp-groups-admin.php
r7166 r7175 1214 1214 */ 1215 1215 function get_views() { 1216 $url_base = remove_query_arg( array( 'orderby', 'order', 'group_status' ), $_SERVER['REQUEST_URI'] ); ?> 1216 $url_base = bp_get_admin_url( 'admin.php?page=bp-groups' ); ?> 1217 1217 1218 <ul class="subsubsub"> 1218 1219 <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>
Note: See TracChangeset
for help on using the changeset viewer.