Changeset 15638 for trunk/wp-includes/functions.php
- Timestamp:
- 09/20/2010 07:13:47 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r15636 r15638 3102 3102 3103 3103 /** 3104 * Load the correct database class file.3105 *3106 * This function is used to load the database class file either at runtime or by3107 * wp-admin/setup-config.php We must globalise $wpdb to ensure that it is3108 * defined globally by the inline code in wp-db.php.3109 *3110 * @since 2.5.03111 * @global $wpdb WordPress Database Object3112 */3113 function require_wp_db() {3114 global $wpdb;3115 if ( file_exists( WP_CONTENT_DIR . '/db.php' ) )3116 require_once( WP_CONTENT_DIR . '/db.php' );3117 else3118 require_once( ABSPATH . WPINC . '/wp-db.php' );3119 }3120 3121 /**3122 3104 * Load custom DB error or display WordPress DB error. 3123 3105 *
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)