Changeset 4221 for sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-upload-subtitles/wordpresstv-upload-subtitles.php
- Timestamp:
- 10/12/2016 11:34:22 AM (9 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
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 }
Note: See TracChangeset
for help on using the changeset viewer.