WordPress.org

Make WordPress Core

Changeset 40900


Ignore:
Timestamp:
06/13/2017 03:10:29 AM (2 years ago)
Author:
DrewAPicture
Message:

Docs: Include 'parent' as an acceptable entry for the $orderby argument in WP_Term_Query.

h/t kalor.
See #41017.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-term-query.php

    r40293 r40900  
    105105     *                                                limited to terms associated with these objects.
    106106     *     @type string       $orderby                Field(s) to order terms by. Accepts term fields ('name',
    107      *                                                'slug', 'term_group', 'term_id', 'id', 'description'),
     107     *                                                'slug', 'term_group', 'term_id', 'id', 'description', 'parent'),
    108108     *                                                'count' for term taxonomy count, 'include' to match the
    109109     *                                                'order' of the $include param, 'meta_value', 'meta_value_num',
Note: See TracChangeset for help on using the changeset viewer.