[wp-trac] [WordPress Trac] #34599: PHP warning in wp-admin/includes/images.php

WordPress Trac noreply at wordpress.org
Fri Nov 6 08:30:22 UTC 2015


#34599: PHP warning in wp-admin/includes/images.php
--------------------------+------------------------------
 Reporter:  skithund      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by skithund):

 Replying to [comment:2 dd32]:
 > Can this instead be switched to `if ( $metadata ) { unset(
 $metadata['...']['..'] ); }`?

 The array is set, but missing `image` (and `data`). Here's a $metadata
 from an audio/mp3.

 {{{
 array (
   'dataformat' => 'mp3',
   'channels' => 2,
   'sample_rate' => 48000,
   'bitrate' => 128004.24543946931953541934490203857421875,
   'channelmode' => 'stereo',
   'bitrate_mode' => 'vbr',
   'lossless' => false,
   'encoder_options' => 'VBR',
   'compression_ratio' =>
 0.08333609729132117338590290955835371278226375579833984375,
   'fileformat' => 'mp3',
   'filesize' => 11578029,
   'mime_type' => 'audio/mpeg',
   'length' => 724,
   'length_formatted' => '12:04',
   'encoder_settings' => 'Lavf56.25.101',
 )
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34599#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list