Make WordPress Core

Ticket #47559: 47559.2.diff

File 47559.2.diff, 2.6 KB (added by afercia, 6 years ago)
  • src/wp-includes/css/media-views.css

     
    21262126        font-style: normal;
    21272127}
    21282128
     2129.media-embed .content-track + .description {
     2130        line-height: 1.4;
     2131        /* The !important needs to override a high specificity selector from wp-medialement.css */
     2132        max-width: none !important;
     2133}
     2134
     2135.media-embed .remove-track {
     2136        margin-bottom: 10px;
     2137}
     2138
    21292139.image-details .embed-media-settings .setting,
    21302140.image-details .embed-media-settings .setting-group {
    21312141        float: none;
  • src/wp-includes/media-template.php

     
    13551355                                        var content = '';
    13561356                                        if ( ! _.isEmpty( data.model.content ) ) {
    13571357                                                var tracks = jQuery( data.model.content ).filter( 'track' );
    1358                                                 _.each( tracks.toArray(), function (track) {
     1358                                                _.each( tracks.toArray(), function( track, index ) {
    13591359                                                        content += track.outerHTML; #>
    1360                                                 <label for="video-details-track" class="name"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></label>
    1361                                                 <input class="content-track" type="text" id="video-details-track" readonly value="{{ track.outerHTML }}" />
    1362                                                 <button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button>
     1360                                                <label for="video-details-track-{{ index }}" class="name"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></label>
     1361                                                <input class="content-track" type="text" id="video-details-track-{{ index }}" aria-describedby="video-details-track-desc-{{ index }}" value="{{ track.outerHTML }}" />
     1362                                                <span class="description" id="video-details-track-desc-{{ index }}">
     1363                                                <?php
     1364                                                        printf(
     1365                                                                /* translators: 1: "srclang" HTML attribute, 2: "label" HTML attribute, 3: "kind" HTML attribute. */
     1366                                                                __( 'The %1$s, %2$s, and %3$s values can be edited to set the video track language and kind.' ),
     1367                                                                'srclang',
     1368                                                                'label',
     1369                                                                'kind'
     1370                                                        );
     1371                                                ?>
     1372                                                </span>
     1373                                                <button type="button" class="button-link remove-setting remove-track"><?php _ex( 'Remove video track', 'media' ); ?></button><br/>
    13631374                                                <# } ); #>
    13641375                                        <# } else { #>
    13651376                                        <span class="name"><?php _e( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ); ?></span><br />