Changeset 4221 for sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/upload-subtitles-template.php
- Timestamp:
- 10/12/2016 11:34:22 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.