Make WordPress Core

Opened 6 years ago

Last modified 4 years ago

#46162 new defect (bug)

get_taxonomies by post_type no output

Reported by: tangfou's profile tangfou Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0.3
Component: Taxonomy Keywords:
Focuses: Cc:

Description

if:

<?php
register_taxonomy('area', array('demand'), $args);

$taxonomies = get_taxonomies( 'object_type' =>array('demand'), $output, $operator );

that is ok!

but if:

<?php

register_taxonomy('area', array('profile', 'resource', 'demand'), $args);

$taxonomies = get_taxonomies( 'object_type' =>array('demand'), $output, $operator );

There is no output.

Change History (1)

#1 @sabernhardt
4 years ago

  • Component changed from General to Taxonomy
Note: See TracTickets for help on using tickets.