Skip to:
Content

BuddyPress.org

Ticket #4901: 4901.02.diff

File 4901.02.diff, 2.7 KB (added by boonebgorges, 11 years ago)
  • bp-activity/bp-activity-admin.php

    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 { 
    11271127         * @since BuddyPress (1.6)
    11281128         */
    11291129        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
    11321132                <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>
    11351135
    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 ); ?>
    11371137                </ul>
    11381138        <?php
    11391139        }
  • bp-groups/bp-groups-admin.php

    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 { 
    11331133         * @since BuddyPress (1.7)
    11341134         */
    11351135        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
    11371138                <ul class="subsubsub">
    11381139                        <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>
    11391140                        <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>