Changeset 31647 for trunk/src/wp-includes/post.php
- Timestamp:
- 03/06/2015 08:37:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r31646 r31647 5092 5092 5093 5093 $check = wp_check_filetype( $file ); 5094 if ( empty( $check['ext'] ) || 'import' !== $post->post_mime_type) {5094 if ( empty( $check['ext'] ) ) { 5095 5095 return false; 5096 5096 } 5097 5097 5098 $ext = $check['ext']; 5099 5100 if ( 'import' !== $post->post_mime_type ) { 5101 return $type === $ext; 5102 } 5098 5103 5099 5104 switch ( $type ) {
Note: See TracChangeset
for help on using the changeset viewer.