From fae4ff9b2fa8a897731a0459ef5ed63b42f8f399 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 5 May 2015 02:04:52 +0000 Subject: [PATCH] Ensure the optional parameters for `get_taxonomies()` are documented as such. See #31800. git-svn-id: https://develop.svn.wordpress.org/trunk@32349 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 6aede0b329..7a6954f028 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -140,11 +140,14 @@ function create_initial_taxonomies() { * * @global array $wp_taxonomies The registered taxonomies. * - * @param array $args An array of key => value arguments to match against the taxonomy objects. - * @param string $output The type of output to return, either taxonomy 'names' or 'objects'. 'names' is the default. - * @param string $operator The logical operation to perform. 'or' means only one element - * from the array needs to match; 'and' means all elements must match. The default is 'and'. - * @return array A list of taxonomy names or objects + * @param array $args Optional. An array of `key => value` arguments to match against the taxonomy objects. + * Default empty array. + * @param string $output Optional. The type of output to return in the array. Accepts either taxonomy 'names' + * or 'objects'. Default 'names'. + * @param string $operator Optional. The logical operation to perform. Accepts 'and' or 'or'. 'or' means only + * one element from the array needs to match; 'and' means all elements must match. + * Default 'and'. + * @return array A list of taxonomy names or objects. */ function get_taxonomies( $args = array(), $output = 'names', $operator = 'and' ) { global $wp_taxonomies;