Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/06/2013 11:48:53 PM (12 years ago)
Author:
boonebgorges
Message:

When building get_views() links on Groups and Activity admin, build URL base from scratch

Previously, we were taking the current URL and removing query args by name.
Invariably, some query args would be forgotten about, leading to unpredictable
results. By building the base URL from scratch, we avoid any danglers.

Fixes #4901

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-admin.php

    r7166 r7175  
    12141214     */
    12151215    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
    12171218        <ul class="subsubsub">
    12181219            <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.