[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 4 16:44:31 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: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Site Health | Version: 5.2
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+---------------------
Comment (by afragen):
Is the conditional in the patch the best way to test or would it be better
as
{{{
property_exists( $active_theme, 'parent_theme' ) ?
$active_theme->parent_theme : $active_theme->template;
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49934#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list