[wp-trac] [WordPress Trac] #27918: get_taxonomies() on single post type should return taxonomies registered on multiple post types
WordPress Trac
noreply at wordpress.org
Sat Jun 21 00:31:31 UTC 2014
#27918: get_taxonomies() on single post type should return taxonomies registered on
multiple post types
------------------------------------------+--------------------
Reporter: johnrork | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+--------------------
Comment (by pauldewouters):
The call to `get_taxonomies` should be:
{{{
get_taxonomies(
array(
'object_type' => array( 'post' ),
)
)
}}}
I have an alternative fix:
{{{
foreach ( $args as $m_key => $m_value ) {
if ( array_key_exists( $m_key, $to_match ) && (
$m_value == $to_match[ $m_key ] ) || ( is_array( $m_value ) &&
array_key_exists( $m_key, $to_match ) ) )
$matched++;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27918#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list