[wp-trac] [WordPress Trac] #12917: Unable to browser media library within custom post type
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 8 19:51:23 UTC 2010
#12917: Unable to browser media library within custom post type
--------------------------+-------------------------------------------------
Reporter: mattwiebe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: General | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by mattwiebe):
Thanks for checking scribu.
I investigated further, thinking that the problem may have been with my
custom post type being named 'media'. I didn't think that it should cause
a problem, since WP's media library uses a post type of 'attachment'.
The problem turned out to be that I added a taxonomy of "type" to the
"media" post type. Again, that didn't seem to be a clash with WP's built-
in taxonomies, but removing it solved the problem. So, unless the taxonomy
of "type" is somehow actually reserved, there's a problem somewhere in the
register_taxonomy() API.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12917#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list