[wp-trac] [WordPress Trac] #46783: Site Health: Notice: Undefined property: WP_Site_Health::$mariadb in /wp-admin/includes/class-wp-site-health.php

WordPress Trac noreply at wordpress.org
Wed Apr 3 10:08:13 UTC 2019


#46783: Site Health: Notice: Undefined property: WP_Site_Health::$mariadb in /wp-
admin/includes/class-wp-site-health.php
-------------------------+-------------------------------------------------
 Reporter:  birgire      |      Owner:  (none)
     Type:  defect       |     Status:  new
  (bug)                  |
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:  site-health needs-patch good-first-
  Focuses:               |  bug
-------------------------+-------------------------------------------------
 When viewing {{{/wp-admin/site-health.php}}} from trunk, I get:

 {{{
 Notice: Undefined property: WP_Site_Health::$mariadb in /wp-admin/includes
 /class-wp-site-health.php
 }}}

 Here

 https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-
 wp-site-health.php#L931

 https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-
 wp-site-health.php#L947

 https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-
 wp-site-health.php#L961

 we have

 {{{
 ( $this->mariadb ? 'MariaDB' : 'MySQL' ),
 }}}

 But it should be:

 {{{
 ( $this->is_mariadb ? 'MariaDB' : 'MySQL' ),
 }}}

 Maybe this is already fixed, but I couldn't find it after a quick search
 here on Trac.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46783>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list