Making WordPress.org


Ignore:
Timestamp:
06/22/2016 10:40:27 AM (10 years ago)
Author:
tellyworth
Message:

Plugin directory: treat en_AU, en_GB etc as separate locales for search.

See #1692

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/libs/site-search/jetpack-search.php

    r3535 r3536  
    273273
    274274                $locale = get_locale();
    275                 if ( $locale && substr( $locale, 0, 2 ) !== 'en' ) {
     275                if ( $locale && $locale !== 'en' && $locale !== 'en_US' ) {
    276276                        $es_wp_query_args['query_fields'] = array( "title_{$locale}^2", 'title_en^0.5', "content_{$locale}^2", 'content_en^0.5', 'author', 'tag', 'category', 'slug_ngram', 'contributors' );
    277277                } else {
Note: See TracChangeset for help on using the changeset viewer.