Skip to content

Commit

Permalink
Flattened response of wp.getTaxonomies.
Browse files Browse the repository at this point in the history
If a caller already knows the name of the taxonomy, they can use wp.getTaxonomy to get its data.
Otherwise, a caller can just look at the 'name' field of each taxonomy in the flat response array.
  • Loading branch information
maxcutler committed Jan 21, 2012
1 parent 4089374 commit dc5f3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-wp-xmlrpc-server-ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ function wp_getTaxonomies($args) {
if ( ! current_user_can( $taxonomy->cap->edit_terms ) )
continue;

$struct[$taxonomy->name] = $this->prepare_taxonomy( $taxonomy );
$struct[] = $this->prepare_taxonomy( $taxonomy );
}

return $struct;
Expand Down

0 comments on commit dc5f3e5

Please sign in to comment.