[wp-trac] [WordPress Trac] #20361: Deal with FALSE value of wp_get_theme() in ~/wp-admin/includes/dashboard.php to avoid making sad owls.
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 5 00:24:36 UTC 2012
#20361: Deal with FALSE value of wp_get_theme() in ~/wp-
admin/includes/dashboard.php to avoid making sad owls.
-----------------------------+------------------------------
Reporter: georgestephanis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.4
Severity: normal | Resolution:
Keywords: needs-patch |
-----------------------------+------------------------------
Comment (by nacin):
I've been thinking about this some more. As it is going to be common to
chain wp_get_theme(), I think we should consider going back to always
returning an object from wp_get_theme() to avoid fatal errors. You can
check wp_get_themes()->exists() or wp_get_themes()->errors() on your own.
I'll let westi weigh in on this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20361#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list