Changeset 9177 for trunk/wp-includes/post.php
- Timestamp:
- 10/14/2008 09:08:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r9145 r9177 29 29 $file = get_post_meta( $attachment_id, '_wp_attached_file', true ); 30 30 // If the file is relative, prepend upload dir 31 if ( 0 !== strpos($file, '/') ) { 32 $uploads = wp_upload_dir(); 31 if ( 0 !== strpos($file, '/') && ( ($uploads = wp_upload_dir()) && false === $uploads['error'] ) ) 33 32 $file = $uploads['basedir'] . "/$file"; 34 }35 33 36 34 if ( $unfiltered )
Note: See TracChangeset
for help on using the changeset viewer.