[wp-trac] [WordPress Trac] #34278: Add support for embeds in the theme template hierarchy
WordPress Trac
noreply at wordpress.org
Mon Mar 7 19:33:05 UTC 2016
#34278: Add support for embeds in the theme template hierarchy
----------------------------------------+-------------------------
Reporter: johnbillion | Owner: swissspidy
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 4.5
Component: Embeds | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch 4.5-early commit | Focuses: template
----------------------------------------+-------------------------
Changes (by swissspidy):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"36876"]:
{{{
#!CommitTicketReference repository="" revision="36876"
Embeds: Add support for embeds in the theme template hierarchy.
This allows themes to directly override the default template. The order in
which the template is retrieved is as follows:
`embed-$post_type-$post_format.php` -> `embed-$post_type.php` ->
`embed.php`.
The `embed_template` filter gets replaced by the dynamic
`{$type}_template` filter in `get_query_template()`.
Props ChriCo, swissspidy.
See #34561. Fixes #34278.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34278#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list