Fix: mysql information displays properly in WP 6.4 #7074
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
WordPress has held backwards compatibility for the MySQL PHP extension for a long time, and provided the
$wpdb->use_mysqli
property as a way of checking if a WP instance is using the old extension, or the new(er) mysqli extension.In WP 6.4, support for the old extension is being dropped, due to the fact that the extension doesn't exist in PHP 7.0, which is the new minimum required version of WordPress. With this, WP is also dropping the
$wpdb->use_mysqli
property because it's meaningless.Our code was using both that property and, conditionally, the function the used the old extension. Since we don't support <PHP 7.2, we can also drop the use of that function and WP property.
Affects
The MySQL portion of the system info page
Testing Instructions
Make sure that the MySQL info loads properly on WP 6.3 and 6.4.
Pre-review Checklist