Ticket #14849: theme.php.15608.diff
| File theme.php.15608.diff, 380 bytes (added by jorbin, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | Index: wp-includes/theme.php |
| 2 | =================================================================== |
| 3 | --- wp-includes/theme.php (revision 15608) |
| 4 | +++ wp-includes/theme.php (working copy) |
| 5 | @@ -1218,6 +1218,7 @@ |
| 6 | update_option('stylesheet', $stylesheet); |
| 7 | delete_option('current_theme'); |
| 8 | $theme = get_current_theme(); |
| 9 | + flush_rewrite_rules(); |
| 10 | do_action('switch_theme', $theme); |
| 11 | } |
| 12 |
