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

WordPress Trac noreply at wordpress.org
Sun Jan 17 18:19:53 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:31 joehoyle]:
 > What's the reasoning behind only checking `is_user_logged_in()` - this
 doesn't really prove anything about the user being privileged to see
 anything special. For example, you can be a user without any capabilities
 whatsoever. IMO `is_user_logged_in()` shouldn't be used to indicate
 anything to do with privilege, we should use `current_user_can(
 'manage_themes' )` or something similar. If there's no need for any
 permissions to view this, then `is_user_logged_in` seems arbitrary.

 That's a good point. Added that cap check in attachment:21931.7.diff.

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


More information about the wp-trac mailing list