Skip to content

Commit

Permalink
Merge pull request #597 from x-team/hotfix-custom-categories
Browse files Browse the repository at this point in the history
Revert usage of get_taxonomy #586
  • Loading branch information
frankiejarrett committed Jul 22, 2014
2 parents 0df9622 + b9a08f9 commit 5ab7ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/taxonomies.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static function action_links( $links, $record ) {
* @param array|string $args Array or string of taxonomy registration arguments
*/
public static function _registered_taxonomy( $taxonomy, $object_type, $args ) {
$taxonomy_obj = get_taxonomy( $taxonomy );
$taxonomy_obj = (object) $args;
$label = get_taxonomy_labels( $taxonomy_obj )->name;

self::$context_labels[ $taxonomy ] = $label;
Expand Down

0 comments on commit 5ab7ed1

Please sign in to comment.