Make WordPress Core

Opened 9 years ago

Closed 7 months ago

Last modified 7 months ago

#38596 closed defect (bug) (wontfix)

Preview Change button does not reflect Custom Page Template

Reported by: blackawxs's profile blackawxs Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6.1
Component: Posts, Post Types 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 (4)

#1 @tomdxw
9 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.

#3 @callumbw95
7 months ago

  • Resolution set to wontfix
  • Status changed from new to closed

Hi all,
I have taken a look into this and replicated the steps mentioned on the latest version of WordPress to see if this issue still persists. In my tests with the block editor I can confirm that this is working now properly. For full coverage I did test with the classic editor (via the plugin) just to confirm if this issue was inherent to the previous page editor, and it looks like it still persists there. However as we have moved away from the classic issue, and WordPress is very much the block editor now, as of such this issue is legacy and therefore this ticket can be closed.

#4 @peterwilsoncc
7 months ago

  • Component changed from General to Posts, Post Types
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.