Opened 14 years ago
Closed 14 years ago
#20364 closed defect (bug) (duplicate)
Can't access the dashboard if your current template/stylesheet options are invalid
| Reported by: | westi | Owned by: | nacin |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Themes | Version: | 3.4 |
| Severity: | major | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
#20361 / [20363] ?