WordPress.org

Make WordPress Core

Changeset 25727


Ignore:
Timestamp:
10/08/2013 03:31:32 PM (7 years ago)
Author:
wonderboymusic
Message:

Use parens to ensure that RegEx OR matches the front when determining that mime-type matches audio|video in attachment_submitbox_metadata().

Props kovshenin.
See #23926.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r25608 r25727  
    24672467        endif;
    24682468
    2469     if ( preg_match( '#^audio|video#', $post->post_mime_type ) ):
     2469    if ( preg_match( '#^(audio|video)#', $post->post_mime_type ) ):
    24702470
    24712471        /**
Note: See TracChangeset for help on using the changeset viewer.