[wp-trac] [WordPress Trac] #22532: It is assumed that a mime type has a minimum of two parts when splitted by "/"

WordPress Trac noreply at wordpress.org
Wed Nov 21 19:56:30 UTC 2012


#22532: It is assumed that a mime type has a minimum of two parts when splitted by
"/"
-----------------------------+--------------------------
 Reporter:  Chouby           |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Media
  Version:  trunk            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 While testing the version 3.5-beta3-22734, I got the following notice (due
 to an attachment created without media file):[[BR]]
 PHP Notice:  Undefined offset: 1 in /wp-includes/media.php on line
 1242[[BR]]
 The line is:[[BR]]
 {{{
 list( $type, $subtype ) = explode( '/', $attachment->post_mime_type );
 }}}
 See also: [http://core.trac.wordpress.org/ticket/22186 22186]

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


More information about the wp-trac mailing list