Make WordPress Core


Ignore:
Timestamp:
03/30/2014 09:07:04 PM (12 years ago)
Author:
nacin
Message:

Cleanups for audio/video metadata, see [27862].

see #27574.

File:
1 edited

Legend:

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

    r27862 r27864  
    26632663        <p>
    26642664            <label for="attachment_caption"><strong><?php _e( 'Caption' ); ?></strong><?php
    2665             if ( preg_match( '#^audio|video#', $post->post_mime_type ) ): ?>: <?php
     2665            if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ): ?>: <?php
    26662666                _e( "Custom label for item in a playlist. If empty, the file's available data is used." );
    26672667            endif ?></label><br />
     
    26892689
    26902690    <label for="content"><strong><?php _e( 'Description' ); ?></strong><?php
    2691     if ( preg_match( '#^audio|video#', $post->post_mime_type ) ): ?>: <?php
     2691    if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ): ?>: <?php
    26922692        _e( 'Displayed on attachment pages.' );
    26932693    endif ?></label>
     
    27522752        endif;
    27532753
    2754     if ( preg_match( '#^(audio|video)#', $post->post_mime_type ) ):
     2754    if ( preg_match( '#^(audio|video)/#', $post->post_mime_type ) ):
    27552755
    27562756        /**
Note: See TracChangeset for help on using the changeset viewer.