Skip to content

Commit

Permalink
Restore compatibility with WordPress <6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Aug 21, 2024
1 parent a17c705 commit 32c7956
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion includes/core-phpunit/includes/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@
require_once ABSPATH . 'wp-settings.php';

require_once ABSPATH . 'wp-admin/includes/upgrade.php';
require_once ABSPATH . 'wp-includes/class-wpdb.php';

/**
* File was renamed in WordPress 6.1.
*
* @see https://core.trac.wordpress.org/ticket/56268
* @see https://github.com/WordPress/WordPress/commit/8484c7babb6b6ee951f83babea656a294157665d
*/
require_once file_exists( ABSPATH . 'wp-includes/class-wpdb.php' )
? ABSPATH . 'wp-includes/class-wpdb.php'
: ABSPATH . 'wp-includes/wp-db.php';

// Override the PHPMailer.
global $phpmailer;
Expand Down

0 comments on commit 32c7956

Please sign in to comment.