[wp-trac] [WordPress Trac] #49934: PHP Notice: Trying to get property 'name' of non-object in wp-admin/includes/class-wp-site-health.php on line 636

WordPress Trac noreply at wordpress.org
Mon May 18 04:37:12 UTC 2020


#49934: PHP Notice: Trying to get property 'name' of non-object in wp-
admin/includes/class-wp-site-health.php on line 636
-------------------------------------+-----------------------------
 Reporter:  juanlopez4691            |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.5
Component:  Site Health              |     Version:  5.2
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47815" 47815]:
 {{{
 #!CommitTicketReference repository="" revision="47815"
 Site Health: Use `WP_Theme::parent()` in the inactive themes test as a
 more reliable check that the parent theme exists.

 This is also more consistent with the other instances of directly
 referencing `WP_Theme::parent()` properties or methods in core.

 Props mukesh27, juanlopez4691, davidbaumwald, afragen, SergeyBiryukov.
 Fixes #49934.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49934#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list