Make WordPress Core


Ignore:
Timestamp:
02/02/2010 04:32:19 PM (16 years ago)
Author:
wpmuguru
Message:

pass #2 change uploaded media rewrite rule, props nacin, see #11742

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/blogs.php

    r12924 r12926  
    11<?php
    2 if ( !defined( 'MEDIA_FILE' ) ) {
     2if ( !defined( 'SHORTINIT' ) ) {
    33    define( 'SHORTINIT', true ); // this prevents most of WP from being loaded
    44    require_once( dirname( dirname( __FILE__) ) . '/wp-load.php' ); // absolute includes are faster
     
    6767endif;
    6868
    69 if ( defined( 'MEDIA_FILE' ) )
    70     $file = BLOGUPLOADDIR . str_replace( '..', '', MEDIA_FILE );
    71 else
    72     $file = BLOGUPLOADDIR . str_replace( '..', '', $_GET[ 'file' ] );
     69$file = BLOGUPLOADDIR . str_replace( '..', '', $_GET[ 'file' ] );
    7370if ( !is_file( $file ) ) {
    7471    status_header( 404 );
Note: See TracChangeset for help on using the changeset viewer.