[wp-trac] [WordPress Trac] #43189: Restoring page revision doesn't restore page template previously used

WordPress Trac noreply at wordpress.org
Wed Jan 31 15:09:07 UTC 2018


#43189: Restoring page revision doesn't restore page template previously used
--------------------------+------------------------------
 Reporter:  bugnumber9    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Revisions     |     Version:  4.9.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by adamsilverstein):

 Hi @bugnumber9 thanks for the bug report.

 This happens because current 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_template` key using the provided filter. If we get meta
 revisioning in core, we can include this field by default.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43189#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list