Make WordPress Core


Ignore:
Timestamp:
04/07/2014 06:12:06 AM (12 years ago)
Author:
wonderboymusic
Message:

[27640] supported a caption for audio and video shortcodes as part of a UX iteration for the related MCE views. These captions have since be excluded, so the extra code should be removed (it was there for this sole reason).

See #27320.

File:
1 edited

Legend:

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

    r27946 r27979  
    852852                    <input type="checkbox" data-setting="loop" />
    853853                </label>
    854 
    855                 <label class="setting">
    856                     <span><?php _e( 'Caption' ); ?></span>
    857                     <input type="text" data-setting="caption" value="{{ data.model.caption }}" />
    858                 </label>
    859 
    860854                <div class="clear"></div>
    861855            </div>
     
    968962                    <# } #>
    969963                    <textarea class="hidden content-setting">{{ content }}</textarea>
    970                 </label>
    971 
    972                 <label class="setting">
    973                     <span><?php _e( 'Caption' ); ?></span>
    974                     <input type="text" data-setting="caption" value="{{ data.model.caption }}" />
    975964                </label>
    976965            </div>
     
    1010999            <div class="dashicons dashicons-no-alt remove"></div>
    10111000        </div>
    1012         <# if ( ! _.isEmpty( data.model.caption ) ) { #>
    1013         <div class="track-details">{{ data.model.caption }}</div>
    1014         <# } #>
    10151001        <?php wp_underscore_audio_template() ?>
    10161002        <div class="wpview-overlay"></div>
     
    10221008            <div class="dashicons dashicons-no-alt remove"></div>
    10231009        </div>
    1024         <# if ( ! _.isEmpty( data.model.caption ) ) { #>
    1025         <div class="track-details">{{ data.model.caption }}</div>
    1026         <# } #>
    10271010        <?php wp_underscore_video_template() ?>
    10281011        <div class="wpview-overlay"></div>
Note: See TracChangeset for help on using the changeset viewer.