[wp-trac] [WordPress Trac] #41144: Previewing static front page drops custom page template
WordPress Trac
noreply at wordpress.org
Mon Jul 3 21:56:38 UTC 2017
#41144: Previewing static front page drops custom page template
--------------------------+------------------------------
Reporter: JBChristy | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.8
Severity: normal | Resolution: invalid
Keywords: close | Focuses:
--------------------------+------------------------------
Changes (by JBChristy):
* keywords: => close
* status: new => closed
* resolution: => invalid
Comment:
You are correct. The issue appears to be with our 3rd party plugin. I
created a vanilla WordPress 4.8 site using TwentySeventeen. I created a
trivial custom page template, and assigned it to the homepage (which is
the default '''Sample Page'''). I was unable to reproduce the problem, no
matter how many times I tried to edit and preview the page.
I then installed and activated our 3rd party plugin. Once an autosave was
created for my user for the homepage, I was able to reproduce the problem
100% of the time. I deactivated that plugin, and was again unable to
reproduce the problem.
I see that that plugin has a `wp_creating_autosave` hook that copies the
parent page's page template to the autosave. Although I've spent hours in
the debugger, I cannot seem to find where or when the parent page's page
template gets reset, but it seems to always happen after that hook fires,
and never happen when the plugin is disabled.
Anyway, I see that this is not an issue with WP core, so I'm marking this
ticket `resolve as: invalid`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41144#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list