[wp-trac] [WordPress Trac] #34561: Abstract some embed template code into functions
WordPress Trac
noreply at wordpress.org
Wed Feb 24 20:56:21 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 DrewAPicture):
In [changeset:"36693"]:
{{{
#!CommitTicketReference repository="" revision="36693"
Embeds: Introduce embed templates into the template hierarchy via theme-
compat.
Splits wp-includes/embed-template.php, introduced in 4.4, into five new
templates that can be individually overridden by themes:
* embed.php
* embed-404.php
* embed-content.php
* header-embed.php
* footer-embed.php
Also introduces a new template tag for outputting the site title,
`the_embed_site_title()`.
The five new templates live in theme-compat, allowing for graceful
fallbacks should themes prefer not to override any or all of them.
Props swissspidy, imath, ocean90, DrewAPicture.
See #34561.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34561#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list