Changeset 7999 for trunk/wp-includes/functions.php
- Timestamp:
- 05/27/2008 05:55:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r7998 r7999 1081 1081 $upload_path = get_option( 'upload_path' ); 1082 1082 if ( trim($upload_path) === '' ) 1083 $upload_path = 'wp-content/uploads';1083 $upload_path = WP_CONTENT_DIR . '/uploads'; 1084 1084 $dir = $upload_path; 1085 1085 … … 1559 1559 function require_wp_db() { 1560 1560 global $wpdb; 1561 if ( file_exists( ABSPATH . 'wp-content/db.php' ) )1562 require_once( ABSPATH . 'wp-content/db.php' );1561 if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) 1562 require_once( WP_CONTENT_DIR . '/db.php' ); 1563 1563 else 1564 1564 require_once( ABSPATH . WPINC . '/wp-db.php' ); … … 1569 1569 1570 1570 // Load custom DB error template, if present. 1571 if ( file_exists( ABSPATH . 'wp-content/db-error.php' ) ) {1572 require_once( ABSPATH . 'wp-content/db-error.php' );1571 if ( file_exists( WP_CONTENT_DIR . '/db-error.php' ) ) { 1572 require_once( WP_CONTENT_DIR . '/db-error.php' ); 1573 1573 die(); 1574 1574 }
Note: See TracChangeset
for help on using the changeset viewer.