[wp-trac] [WordPress Trac] #17784: media items uploaded through post-thumbnails require the post to have editor support

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 13 15:27:26 UTC 2011


#17784: media items uploaded through post-thumbnails require the post to have
editor support
--------------------------+------------------------------
 Reporter:  lewismcarey   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by kawauso):

 * keywords:   => has-patch


Comment:

 More usable test code:
 {{{
 add_action( 'init', 'foo_bar' );

 function foo_bar() {
         register_post_type('FOO',array('public' => true, 'supports' =>
 array('title', 'thumbnail')));
         register_post_type('BAR',array('public' => true, 'supports' =>
 array('title', 'editor')));
 }
 }}}

 Following patch moves some existing code for the post thumbnail support
 check further up and uses the calling post's ID where possible, rather
 than the post parent.

 Also changes `isset( $_POST ) && count( $_POST )` to `!empty( $_POST )`

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17784#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list