Changeset 4221
- Timestamp:
- 10/12/2016 11:34:22 AM (9 years ago)
- Location:
- sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2
- Files:
-
- 2 edited
-
plugins/wordpresstv-upload-subtitles/wordpresstv-upload-subtitles.php (modified) (1 diff)
-
upload-subtitles-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-upload-subtitles/wordpresstv-upload-subtitles.php
r1556 r4221 147 147 $parent = get_post( $video_attachment->post_parent ); 148 148 149 if ( ! $parent || 'publish' != $parent->post_status) {149 if ( ! $parent || ! in_array( $parent->post_status, array( 'publish', 'private' ), true ) ) { 150 150 wp_die( 'You can not subtitle this video.' ); 151 151 } -
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/upload-subtitles-template.php
r1722 r4221 192 192 $parent = get_post( $attachment->post_parent ); 193 193 194 if ( ! $parent || 'publish' != $parent->post_status )194 if ( ! $parent || ! in_array( $parent->post_status, array( 'publish', 'private' ), true ) ) { 195 195 wp_die( 'You can not subtitle this video, sorry.' ); 196 } 196 197 197 198 get_header();
Note: See TracChangeset
for help on using the changeset viewer.