[wp-trac] [WordPress Trac] #34278: Add support for embeds in the theme template hierarchy

WordPress Trac noreply at wordpress.org
Thu Mar 3 22:45:56 UTC 2016

#34278: Add support for embeds in the theme template hierarchy
 Reporter:  johnbillion                 |       Owner:
     Type:  task (blessed)              |      Status:  reviewing
 Priority:  normal                      |   Milestone:  4.5
Component:  Embeds                      |     Version:  4.4
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch 4.5-early commit  |     Focuses:  template
Changes (by DrewAPicture):

 * keywords:  has-patch 4.5-early => has-patch 4.5-early commit


 Thought this through a little bit and conferred with @swissspidy, and the
 consensus is that we never should have introduced the `embed_template`
 hook in 4.4 because of the conflict pointed out in comment:20

 The good news is that @obenland has kindly checked a slurp of the themes
 repository and it looks like no themes have yet implemented embed.php
 templates, which means we're in the clear to dump the explicit
 `embed_template` filter and simply rely on the fallback behavior in
 `locate_template()` to infer the `/theme-compat/embed.php` path put in
 place in [36693].

Ticket URL: <https://core.trac.wordpress.org/ticket/34278#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list