WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/30/2010 12:05:18 AM (11 years ago)
Author:
dd32
Message:

Alot more tabs. Props jacobsantos & Viper007bond. See #14147

File:
1 edited

Legend:

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

    r15348 r15355  
    35063506            $del_file = path_join( dirname($meta['file']), $size['file'] );
    35073507            $del_file = apply_filters('wp_delete_file', $del_file);
    3508             @ unlink( path_join($uploadpath['basedir'], $del_file) );
     3508            @ unlink( path_join($uploadpath['basedir'], $del_file) );
    35093509        }
    35103510    }
     
    35793579            if ( 0 === strpos($file, $uploads['basedir']) ) //Check that the upload base exists in the file location
    35803580                $url = str_replace($uploads['basedir'], $uploads['baseurl'], $file); //replace file location with url location
    3581             elseif ( false !== strpos($file, 'wp-content/uploads') )
    3582                 $url = $uploads['baseurl'] . substr( $file, strpos($file, 'wp-content/uploads') + 18 );
    3583             else
    3584                 $url = $uploads['baseurl'] . "/$file"; //Its a newly uploaded file, therefor $file is relative to the basedir.
     3581            elseif ( false !== strpos($file, 'wp-content/uploads') )
     3582                $url = $uploads['baseurl'] . substr( $file, strpos($file, 'wp-content/uploads') + 18 );
     3583            else
     3584                $url = $uploads['baseurl'] . "/$file"; //Its a newly uploaded file, therefor $file is relative to the basedir.
    35853585        }
    35863586    }
Note: See TracChangeset for help on using the changeset viewer.