Skip to:
Content

BuddyPress.org

Changeset 12201


Ignore:
Timestamp:
08/15/2018 09:04:36 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

Fixes #7944 (Trunk)

File:
1 edited

Legend:

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

    r12082 r12201  
    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.