WordPress/wp-includes/wp-db.php
Sergey Biryukov 30d9a61fe2 Coding Standards: Use __DIR__ instead of ABSPATH in wp-db.php.
If the file is included directly outside of WordPress core, `ABSPATH` may not be defined.

Follow-up to [53749], [53750], [53755].

See #56268, #55647.
Built from https://develop.svn.wordpress.org/trunk@53756


git-svn-id: http://core.svn.wordpress.org/trunk@53315 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-07-21 22:45:11 +00:00

18 lines
445 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 __DIR__ . '/class-wpdb.php';