Changeset 6198 for trunk/wp-includes/functions.php
- Timestamp:
- 10/06/2007 08:18:33 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r6180 r6198 1416 1416 } 1417 1417 1418 /* 1419 * require_wp_db() - require_once the correct database class file. 1420 * 1421 * This function is used to load the database class file either at runtime or by wp-admin/setup-config.php 1422 * We must globalise $wpdb to ensure that it is defined globally by the inline code in wp-db.php 1423 * 1424 * @global $wpdb 1425 */ 1426 function require_wp_db() 1427 { 1428 global $wpdb; 1429 if ( file_exists(ABSPATH . 'wp-content/db.php') ) 1430 require_once (ABSPATH . 'wp-content/db.php'); 1431 else 1432 require_once (ABSPATH . WPINC . '/wp-db.php'); 1433 } 1434 1418 1435 ?>
Note: See TracChangeset
for help on using the changeset viewer.