[wp-trac] [WordPress Trac] #34561: Abstract some embed template code into functions

WordPress Trac noreply at wordpress.org
Mon Mar 7 19:33:03 UTC 2016


#34561: Abstract some embed template code into functions
--------------------------------------------+---------------------------
 Reporter:  johnbillion                     |       Owner:  DrewAPicture
     Type:  task (blessed)                  |      Status:  assigned
 Priority:  normal                          |   Milestone:  4.5
Component:  Embeds                          |     Version:  4.4
 Severity:  normal                          |  Resolution:
 Keywords:  has-patch needs-testing commit  |     Focuses:
--------------------------------------------+---------------------------

Comment (by swissspidy):

 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/34561#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list