[wp-trac] [WordPress Trac] #14133: Custom post type breaks the_editor in plugins

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 28 19:22:41 UTC 2010


#14133: Custom post type breaks the_editor in plugins
--------------------------+-------------------------------------------------
 Reporter:  xiosen        |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  3.0            
 Severity:  major         |    Keywords:  the_editor     
--------------------------+-------------------------------------------------
 I previously used the_editor to tap into the wordpress editor in my
 plugins. With the addition of custom post types in wordpress 3.0, this
 feature breaks the insert into post within the add media buttons which in
 turn breaks my plugins ability to use the_editor.

 In wp-admin/includes/media.php line 1166 the default 'send' argument now
 checks for custom post type support whereas in previous versions of
 wordpress it defaulted to true.

 In this instance, using media buttons through the_editor in a plugin does
 not work since a custom post type was not registered. Since 'send' is now
 defaulted to false the insert into post buttons do not show up.

 I would propose adding a filter for the defaults or setting the 'send'
 default to true and only checking for post_type_supports if a post parent
 is found.

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


More information about the wp-trac mailing list