[wp-trac] [WordPress Trac] #21931: White screen of death if theme can't be found

WordPress Trac noreply at wordpress.org
Sun Jan 17 17:01:12 UTC 2016


#21931: White screen of death if theme can't be found
------------------------------------+-----------------------
 Reporter:  ericlewis               |       Owner:
     Type:  enhancement             |      Status:  reopened
 Priority:  normal                  |   Milestone:  4.5
Component:  Themes                  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+-----------------------

Comment (by ericlewis):

 Replying to [comment:27 nacin]:
 > I don't hate [attachment:21931.4.diff], but I'm not sold on showing this
 to anonymous users. Minor code thing: a `WP_Error` object can be passed
 directly to `wp_die()`.

 Updated in attachment:21931.5.diff, let's show this to logged-in users.

 Replying to [comment:27 nacin]:
 > One other question to think about: under what circumstances would this
 `else` block be hit? Are we unnecessarily calling `wp_get_theme()` (a
 filesystem hit) in a common situation where we shouldn't?

 This should only be hit if a theme template is intended to be loaded as
 far as I can imagine.

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


More information about the wp-trac mailing list