Making WordPress.org


Ignore:
Timestamp:
09/02/2022 05:00:44 AM (2 years ago)
Author:
dd32
Message:

WordPress.TV: Allow re uploading subtitles.

This open-sources changes made by robfelty upstream in the WordPress.TV codebase.

Props robfelty.
Fixes #1207.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/upload-subtitles-template.php

    r8365 r12041  
    277277                            <?php $tracks = VideoPress_Subtitles::get_tracks( $video->guid ); ?>
    278278                            <?php foreach ( VideoPress_Subtitles::get_languages() as $value => $language ) : ?>
    279                                 <option value="<?php echo esc_attr( $value ); ?>" <?php disabled( ! empty( $tracks[ $value ] ) ); ?> ><?php echo esc_html( $language['localized_label'] ); ?></option>
     279                                <option value="<?php echo esc_attr( $value ); ?>" ><?php echo esc_html( $language['localized_label'] ); ?></option>
    280280                            <?php endforeach; ?>
    281281                        </select>
Note: See TracChangeset for help on using the changeset viewer.