Changeset 19231
- Timestamp:
- 11/09/2011 07:20:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r19193 r19231 3891 3891 return false; 3892 3892 3893 if ( 'attachment' != $post->post_type ); 3894 return false; 3895 3893 3896 $url = ''; 3894 3897 if ( $file = get_post_meta( $post->ID, '_wp_attached_file', true) ) { //Get attached file … … 3908 3911 $url = apply_filters( 'wp_get_attachment_url', $url, $post->ID ); 3909 3912 3910 if ( 'attachment' != $post->post_type ||empty( $url ) )3913 if ( empty( $url ) ) 3911 3914 return false; 3912 3915
Note: See TracChangeset
for help on using the changeset viewer.