Make WordPress Core

Changeset 20670


Ignore:
Timestamp:
05/01/2012 08:33:06 PM (13 years ago)
Author:
nacin
Message:

Fix copy-paste issues in XML-RPC's _prepare_taxonomy(). see #20566.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r20665 r20670  
    520520    protected function _prepare_taxonomy( $taxonomy, $fields ) {
    521521        $_taxonomy = array(
    522             'name' => $taxonmy->name,
     522            'name' => $taxonomy->name,
    523523            'label' => $taxonomy->label,
    524524            'hierarchical' => (bool) $taxonomy->hierarchical,
     
    532532
    533533        if ( in_array( 'capabilities', $fields ) )
    534             $_taxonomy['cap'] = (array) $post_type->cap;
     534            $_taxonomy['cap'] = (array) $taxonomy->cap;
    535535
    536536        if ( in_array( 'object_types', $fields ) )
Note: See TracChangeset for help on using the changeset viewer.