[wp-trac] [WordPress Trac] #41690: Fix missing assignment of page templates on theme switch

WordPress Trac noreply at wordpress.org
Mon Aug 21 20:14:57 UTC 2017


#41690: Fix missing assignment of page templates on theme switch
-------------------------+-----------------------------
 Reporter:  melchoyce    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Themes       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  template
-------------------------+-----------------------------

Comment (by joyously):

 This one never made sense to me.
 The theme-specific page template is saved in post meta (so per post). The
 value is not related to other themes, yet switching to a theme with a
 different template name will cause those pages to use the default.

 The alternative to saving per post would be to save post IDs somewhere per
 theme.

 Or make the post meta value an array with theme name and template name, or
 many entries for that same post meta with theme name and template name.

 Or perhaps evolve the templates into a taxonomy (how a taxonomy is
 stored), such that there is something that core provides (default template
 name) that is stable and the others can be assigned, sort of like menus
 are. If the user could say "For all pages with post meta of 'full-width',
 choose 'fancyxx' to display".

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


More information about the wp-trac mailing list