Skip to content

Commit

Permalink
Site Health: Remove unused $wpdb global in utf8mb4 support test.
Browse files Browse the repository at this point in the history
Follow-up to [44984], [56475].

Props upadalavipul, mukesh27.
Fixes #59977.

git-svn-id: https://develop.svn.wordpress.org/trunk@57141 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Nov 28, 2023
1 parent 5f2f5f6 commit a21f5a3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wp-admin/includes/class-wp-site-health.php
Original file line number Diff line number Diff line change
Expand Up @@ -1288,13 +1288,9 @@ public function get_test_sql_server() {
*
* @since 5.2.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @return array The test results.
*/
public function get_test_utf8mb4_support() {
global $wpdb;

if ( ! $this->mysql_server_version ) {
$this->prepare_sql_data();
}
Expand Down

0 comments on commit a21f5a3

Please sign in to comment.