[wp-trac] [WordPress Trac] #18396: Custom post type of "tab" creates query conflict with media uploader.

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 13 20:12:11 UTC 2011


#18396: Custom post type of "tab" creates query conflict with media uploader.
-----------------------------+-----------------------------
 Reporter:  theandystratton  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Media            |    Version:  3.0
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 1. Create a custom post type with name "tab"
 2. Upload media in  (either attached to a post, or not)
 3. Return to media uploader and click on "Library" tab, no images are
 pulled

 The query being called will check for a post_type of tab with the
 post_name library, looks like it's due to "tab=library" being in the query
 string. Change the post type or remove the its registration and the
 problem disappears.

 Details: WP 3.0+ (trunk, too), no plugins, TwentyEleven child theme only
 having a functions.php with the register_post_type function called on
 init.

 I'd love to submit a patch to account for this or it could be listed as a
 reserved word for custom post types. Looking for direction for next steps.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18396>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list