Changeset 12041 for sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-upload-subtitles/wordpresstv-upload-subtitles.php
- Timestamp:
- 09/02/2022 05:00:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-upload-subtitles/wordpresstv-upload-subtitles.php
r8230 r12041 149 149 if ( ! $parent || ! in_array( $parent->post_status, array( 'publish', 'private' ), true ) ) { 150 150 wp_die( 'You can not subtitle this video.' ); 151 }152 153 $tracks = class_exists( 'VideoPress_Subtitles' ) ? VideoPress_Subtitles::get_tracks( $video_data->guid ) : array();154 if ( ! empty( $tracks[ $language['key'] ] ) ) {155 $this->error( 8 );156 151 } 157 152
Note: See TracChangeset
for help on using the changeset viewer.