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

WordPress Trac noreply at wordpress.org
Sun Mar 6 16:34:32 UTC 2016


#34278: Add support for embeds in the theme template hierarchy
----------------------------------------+-------------------------
 Reporter:  johnbillion                 |       Owner:  swissspidy
     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
----------------------------------------+-------------------------

Comment (by swissspidy):

 If there are no objections to the suggested hierarchy
 (`embed-$post_type-$post_format.php` -> `embed-$post_type` ->
 `embed.php`), this one is good to go.

 I checked some other plugins where people filtered `embed_template` and
 they wouldn't be affected by this change either.

 Unfortunately because `loca_template()` uses the `STYLESHEETPATH` and
 `TEMPLATEPATH` constants to locate the theme templates, we can't really
 add a unit test for the hierarchy in a blank theme.

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


More information about the wp-trac mailing list