WordPress.org

Make WordPress Core

Changeset 32349


Ignore:
Timestamp:
05/05/2015 02:04:52 AM (5 years ago)
Author:
DrewAPicture
Message:

Ensure the optional parameters for get_taxonomies() are documented as such.

See #31800.

File:
1 edited

Legend:

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

    r32348 r32349  
    141141 * @global array $wp_taxonomies The registered taxonomies.
    142142 *
    143  * @param array $args An array of key => value arguments to match against the taxonomy objects.
    144  * @param string $output The type of output to return, either taxonomy 'names' or 'objects'. 'names' is the default.
    145  * @param string $operator The logical operation to perform. 'or' means only one element
    146  *  from the array needs to match; 'and' means all elements must match. The default is 'and'.
    147  * @return array A list of taxonomy names or objects
     143 * @param array  $args     Optional. An array of `key => value` arguments to match against the taxonomy objects.
     144 *                         Default empty array.
     145 * @param string $output   Optional. The type of output to return in the array. Accepts either taxonomy 'names'
     146 *                         or 'objects'. Default 'names'.
     147 * @param string $operator Optional. The logical operation to perform. Accepts 'and' or 'or'. 'or' means only
     148 *                         one element from the array needs to match; 'and' means all elements must match.
     149 *                         Default 'and'.
     150 * @return array A list of taxonomy names or objects.
    148151 */
    149152function get_taxonomies( $args = array(), $output = 'names', $operator = 'and' ) {
Note: See TracChangeset for help on using the changeset viewer.