[wp-trac] [WordPress Trac] #25334: With custom page templates set per page, surprising behavior after switching themes

WordPress Trac noreply at wordpress.org
Mon Sep 16 22:58:56 UTC 2013


#25334: With custom page templates set per page, surprising behavior after
switching themes
--------------------------------------+------------------------------
 Reporter:  ericlewis                 |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Administration            |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  dev-feedback 2nd-opinion  |
--------------------------------------+------------------------------
Changes (by nofearinc):

 * cc: mario@… (added)
 * keywords:  dev-feedback => dev-feedback 2nd-opinion


Comment:

 I was able to reproduce that as well. Creating a page and assigning a page
 template from a theme works OK, when switching to a new theme and updating
 the page it returns earlier in the code above. The problem exists
 "forever", i.e. if you save the page with the old template a couple times,
 it would still fall in that same block (and hooks such as `save_post` are
 not fired at all).

 Any way we could always ignore that issue and just set the default
 template (or at least whenever `$wp_error` is `false`?)

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25334#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list