[wp-trac] [WordPress Trac] #20364: Can't access the dashboard if your current template/stylesheet options are invalid

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 5 09:47:37 UTC 2012


#20364: Can't access the dashboard if your current template/stylesheet options are
invalid
--------------------------+-----------------------
 Reporter:  westi         |      Owner:  nacin
     Type:  defect (bug)  |     Status:  new
 Priority:  high          |  Milestone:  3.4
Component:  Themes        |    Version:  3.4
 Severity:  major         |   Keywords:  has-patch
--------------------------+-----------------------
 If your current template/stylesheet options are invalid - for example they
 point at a theme that has been deleted then you get the expected WSOD on
 the front-end so in desperation you go to login in to /wp-admin/ only to
 find that shows a WSOD too :(

 Pre WP_Theme this worked a treat.

 The issue is {{{wp_dashboard_right_now()}}} which has this code:

 {{{
         $theme = wp_get_theme();

         echo "\n\t<p>";

         if ( $theme->errors() ) {
 }}}

 {{{wp_get_theme()}}} can return false.

 Broken by [20029] - {{{current_theme_info}}} always returned a stdClass
 whatever the validity of the current theme by {{{wp_get_theme()}}}
 doesn't.

 Attached patch is one possible fix.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20364>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list