Skip to:
Content

BuddyPress.org

Changeset 9009


Ignore:
Timestamp:
09/12/2014 09:46:08 PM (10 years ago)
Author:
djpaul
Message:

Activity: @mentions Fix search logic for RTL.

I'd previously made a faulty assumption regarding letter order in the database, but my testing reveals the letter order stays intact, it is the word order that is reversed. Pending feedback from anyone who uses a RTL language, I'm modifying the search logic so that it's identical in both LTR and RTL modes.

Fixes #5855

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-classes.php

    r8928 r9009  
    26702670            'per_page'        => $this->args['limit'],
    26712671            'search_terms'    => $this->args['term'],
    2672             'search_wildcard' => is_rtl() ? 'left' : 'right',
     2672            'search_wildcard' => 'right',
    26732673        );
    26742674
Note: See TracChangeset for help on using the changeset viewer.