[wp-trac] [WordPress Trac] #15982: Attachment taxonomies broken
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 26 05:33:37 UTC 2010
#15982: Attachment taxonomies broken
--------------------------+-----------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: General | Version:
Severity: blocker | Keywords:
--------------------------+-----------------
This works in 3.0. It does not in RC1.
{{{
add_action( 'init', function() {
// create a new taxonomy
register_taxonomy(
'people',
array( 'attachment:image', 'attachment:video',
'attachment:audio' ),
array(
'label' => __('People'),
'template' => __('People: %l.'),
'helps' => __('Separate people with commas.'),
'sort' => true,
'args' => array('orderby' => 'term_order'),
'rewrite' => array('slug' => 'person'),
)
);
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15982>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list