Opened 8 years ago
Last modified 8 years ago
#43189 new defect (bug)
Restoring page revision doesn't restore page template previously used
| Reported by: | bugnumber9 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Revisions | Version: | 4.9.2 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
I noticed this when one of the editors made a change in a page and also changed page template.
We reverted the change by restoring a previous revision, but this didn't restore the previous page template.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @bugnumber9 thanks for the bug report.
This happens because currently WordPress does not revision post meta and the page selected theme setting is stored in meta. See #20564. A possible workaround for now is to install this plugin (which I need to update): https://wordpress.org/plugins/wp-post-meta-revisions/ and then whitelist the
_wp_page_templatekey using the provided filter. If we get meta revisioning in core, we can include this field by default.