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