[wp-trac] [WordPress Trac] #24805: Error when uploading MP3 with embedded cover image

WordPress Trac noreply at wordpress.org
Fri Jul 19 22:58:05 UTC 2013


#24805: Error when uploading MP3 with embedded cover image
--------------------------+--------------------
 Reporter:  tollmanz      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.6
Component:  Media         |     Version:  trunk
 Severity:  major         |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------
Changes (by wonderboymusic):

 * keywords:   => has-patch


Comment:

 I was getting 2 errors

 `PHP Warning:  in_array() expects parameter 2 to be array, string given in
 /Users/scott/git/wordpress/wp-includes/theme.php on line 1547`

 AND

 `PHP Notice:  Undefined variable: post_title in /Users/scott/git/wordpress
 /wp-includes/post.php on line 3921`
 `PHP Notice:  Undefined variable: post_title in /Users/scott/git/wordpress
 /wp-includes/post.php on line 3988`

 The theme support expects an array:
 `add_theme_support( 'post-thumbnails', array( 'attachment:audio',
 'attachment:video' ) );`

 I don't think an array should be required.

 And `post_title` doesn't have an empty default in `wp_insert_attachment()`
 - it does in `wp_insert_post()` on line 2635.

 Uploading patch.

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


More information about the wp-trac mailing list