Opened 14 months ago
Closed 14 months ago
#20364 closed defect (bug) (duplicate)
Can't access the dashboard if your current template/stylesheet options are invalid
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Themes | Version: | 3.4 |
| Severity: | major | Keywords: | has-patch |
| Cc: |
Description
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.

#20361 / [20363] ?