Make WordPress Core

Opened 8 years ago

Last modified 8 years ago

#38596 new defect (bug)

Preview Change button does not reflect Custom Page Template

Reported by: blackawxs's profile blackawxs Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6.1
Component: General Keywords: needs-patch dev-feedback
Focuses: Cc:

Description

When creating 2 or more custom page templates, the Preview Change button is failing to show the correct template after making a switch. Here are steps below.

  • Create 2 custom page templates in code.
  • Go to wp-admin and go to Pages
  • Either use the Sample that ships with WordPress or create a new page
  • Within page edit mode, under Page Attributes, select a different page template.
  • Click Preview Change.
  • You will notice that the preview does not reflect the correct template. You have to push Update in order to see it.

Change History (2)

#1 @tomdxw
8 years ago

  • Keywords needs-patch added

#2 @gchtr
8 years ago

  • Keywords dev-feedback added

I can confirm that this does not work.

I had a short discussion with @swissspidy about this:

It is expected behavior. To solve it, the new page template would have to be passed as a query parameter to the preview or be saved as a post meta revision. Ticket #12922 is related to this: same problem, just with post thumbnails. A solution could be the framework for storing revisions of post meta found in #20564.

Note: See TracTickets for help on using tickets.