[wp-trac] [WordPress Trac] #26825: Add ability to generate metadata for audio / video files on-demand

WordPress Trac noreply at wordpress.org
Fri Feb 7 22:40:33 UTC 2014


#26825: Add ability to generate metadata for audio / video files on-demand
------------------------------------+------------------
 Reporter:  wonderboymusic          |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  3.9
Component:  Media                   |     Version:  3.6
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------

Comment (by wonderboymusic):

 In [changeset:"27127"]:
 {{{
 #!CommitTicketReference repository="" revision="27127"
 Introduce `maybe_regenerate_attachment_metadata( $attachment )`. On the
 Edit Media screen, call it for Audio and Video files.

 The functions checks if the item is lacking metadata altogether. If a
 video or audio file was uploaded prior to 3.6, it does not have any
 metadata. This tries to fix it. Implements locking via a transient to
 protect against this running in parallel with another request.

 This is the minimum viable product for #26825, but leaving the ticket open
 unless this function needs to be called in other places.

 See #26825.
 }}}

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


More information about the wp-trac mailing list