mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
1cf37b12ae
This avoids a fatal error if the file is included directly outside of WordPress core, e.g. by HyperDB. Additionally, replace `WPINC` with `wp-includes`, as the constant may not be defined yet in that context. Follow-up to [53749], [53750]. See #56268, #55647. Built from https://develop.svn.wordpress.org/trunk@53755 git-svn-id: http://core.svn.wordpress.org/trunk@53314 1a063a9b-81f0-0310-95a4-ce76da25c4cd
18 lines
456 B
PHP
18 lines
456 B
PHP
<?php
|
|
/**
|
|
* WordPress database access abstraction class.
|
|
*
|
|
* This file is deprecated, use 'wp-includes/class-wpdb.php' instead.
|
|
*
|
|
* @deprecated 6.1.0
|
|
* @package WordPress
|
|
*/
|
|
|
|
if ( function_exists( '_deprecated_file' ) ) {
|
|
// Note: WPINC may not be defined yet, so 'wp-includes' is used here.
|
|
_deprecated_file( basename( __FILE__ ), '6.1.0', 'wp-includes/class-wpdb.php' );
|
|
}
|
|
|
|
/** wpdb class */
|
|
require_once ABSPATH . 'wp-includes/class-wpdb.php';
|