Make WordPress Core


Ignore:
Timestamp:
10/14/2008 09:08:28 PM (16 years ago)
Author:
westi
Message:

Notice fixes. See #7509 props DD32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r9145 r9177  
    2929    $file = get_post_meta( $attachment_id, '_wp_attached_file', true );
    3030    // 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'] ) )
    3332        $file = $uploads['basedir'] . "/$file";
    34     }
    3533       
    3634    if ( $unfiltered )
Note: See TracChangeset for help on using the changeset viewer.