Changeset 12926 for trunk/wp-content/blogs.php
- Timestamp:
- 02/02/2010 04:32:19 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/blogs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/blogs.php
r12924 r12926 1 1 <?php 2 if ( !defined( ' MEDIA_FILE' ) ) {2 if ( !defined( 'SHORTINIT' ) ) { 3 3 define( 'SHORTINIT', true ); // this prevents most of WP from being loaded 4 4 require_once( dirname( dirname( __FILE__) ) . '/wp-load.php' ); // absolute includes are faster … … 67 67 endif; 68 68 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' ] ); 73 70 if ( !is_file( $file ) ) { 74 71 status_header( 404 );
Note: See TracChangeset
for help on using the changeset viewer.