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

WordPress Trac noreply at wordpress.org
Fri Oct 16 07:20:12 UTC 2015


#34278: Add support for embeds in the theme template hierarchy
-----------------------------------+-----------------------
 Reporter:  johnbillion            |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  4.4
Component:  Embeds                 |     Version:  trunk
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |     Focuses:  template
-----------------------------------+-----------------------
Changes (by swissspidy):

 * keywords:  needs-patch 2nd-opinion => 2nd-opinion has-patch
 * component:  Themes => Embeds
 * milestone:  Awaiting Review => 4.4


Comment:

 [attachment:34278.diff] checks for an `embed.php` file in the theme before
 including the default file before including `wp-includes/embed-
 template.php`.

 Benefit of this solution: We don't mess with the dynamic `$type_template`
 hook.

 `embed.php` is a bit generic though and could already be used by some
 themes. What about `wp-embed.php`?

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


More information about the wp-trac mailing list