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

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 21 03:11:24 UTC 2012


#21931: White screen of death if theme can't be found
--------------------------------------+------------------------------
 Reporter:  ericlewis                 |       Owner:
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Themes                    |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  2nd-opinion dev-feedback  |
--------------------------------------+------------------------------

Comment (by johnbillion):

 Replying to [comment:8 scribu]:
 > What I'm saying is that the error message shouldn't assume that it will
 only be seen by developers.
 Let's make the message capability-dependant then.
 {{{
 if ( current_user_can( 'switch_themes' ) )
         $message = __( 'You just broke everything!' );
 else
         $message = __( 'Everything is fine and we will be back shortly.'
 );

 wp_die( $message );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21931#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list