Changeset 12924 for trunk/wp-content/blogs.php
- Timestamp:
- 02/02/2010 02:17:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/blogs.php
r12859 r12924 1 1 <?php 2 define( 'SHORTINIT', true ); // this prevents most of WP from being loaded 3 require_once( dirname( dirname( __FILE__) ) . '/wp-load.php' ); // absolute includes are faster 2 if ( !defined( 'MEDIA_FILE' ) ) { 3 define( 'SHORTINIT', true ); // this prevents most of WP from being loaded 4 require_once( dirname( dirname( __FILE__) ) . '/wp-load.php' ); // absolute includes are faster 5 } 4 6 5 7 if ( $current_blog->archived == '1' || $current_blog->spam == '1' || $current_blog->deleted == '1' ) { … … 65 67 endif; 66 68 67 68 $file = BLOGUPLOADDIR . str_replace( '..', '', $_GET[ 'file' ] ); 69 if ( defined( 'MEDIA_FILE' ) ) 70 $file = BLOGUPLOADDIR . str_replace( '..', '', MEDIA_FILE ); 71 else 72 $file = BLOGUPLOADDIR . str_replace( '..', '', $_GET[ 'file' ] ); 69 73 if ( !is_file( $file ) ) { 70 74 status_header( 404 );
Note: See TracChangeset
for help on using the changeset viewer.