Make WordPress Core


Ignore:
Timestamp:
03/27/2017 07:47:53 PM (8 years ago)
Author:
jeremyfelt
Message:

Multisite: Add lang_id support to WP_Site_Query.

Sites can now be queried by lang_id, lang__in, and lang__not_in.

Props ocean90.
Fixes #40196.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r40333 r40340  
    574574 *
    575575 * @since 4.6.0
     576 * @since 4.8.0 Introduced the 'lang_id', 'lang__in', and 'lang__not_in' parameters.
    576577 *
    577578 * @see WP_Site_Query::parse_query()
     
    614615 *     @type int          $spam              Limit results to spam sites. Accepts '1' or '0'. Default empty.
    615616 *     @type int          $deleted           Limit results to deleted sites. Accepts '1' or '0'. Default empty.
     617 *     @type int          $lang_id           Limit results to a language ID. Default empty.
     618 *     @type array        $lang__in          Array of language IDs to include affiliated sites for. Default empty.
     619 *     @type array        $lang__not_in      Array of language IDs to exclude affiliated sites for. Default empty.
    616620 *     @type string       $search            Search term(s) to retrieve matching sites for. Default empty.
    617621 *     @type array        $search_columns    Array of column names to be searched. Accepts 'domain' and 'path'.
Note: See TracChangeset for help on using the changeset viewer.