Skip to:
Content

BuddyPress.org

Changeset 12200


Ignore:
Timestamp:
08/15/2018 09:02:20 AM (6 years ago)
Author:
imath
Message:

BP Nouveau: URI decode search terms before doing AJAX requests

When a search request is triggered using a BuddyPress component URL search query var (eg: clicking on a profile data link), we need to URI decode the search terms to make sure search results are consistent.

Props casper99

See #7944 (branch 3.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/src/bp-templates/bp-nouveau/js/buddypress-nouveau.js

    r12082 r12200  
    358358
    359359                    if ( search_terms ) {
     360                        search_terms = decodeURIComponent( search_terms.replace( /\+/g, ' ' ) );
    360361                        $( '#buddypress [data-bp-search="' + object + '"] input[type=search]' ).val( search_terms );
    361362                    }
Note: See TracChangeset for help on using the changeset viewer.