mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Embeds: Add a filter for the site title HTML.
Props swissspidy. Fixes #34534. Built from https://develop.svn.wordpress.org/trunk@35578 git-svn-id: http://core.svn.wordpress.org/trunk@35542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2349a2377
commit
af06409b97
@ -121,13 +121,22 @@ if ( have_posts() ) :
|
||||
<div class="wp-embed-footer">
|
||||
<div class="wp-embed-site-title">
|
||||
<?php
|
||||
printf(
|
||||
$site_title = sprintf(
|
||||
'<a href="%s" target="_top"><img src="%s" srcset="%s 2x" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>',
|
||||
esc_url( home_url() ),
|
||||
esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) ),
|
||||
esc_url( get_site_icon_url( 64, admin_url( 'images/w-logo-blue.png' ) ) ),
|
||||
esc_html( get_bloginfo( 'name' ) )
|
||||
);
|
||||
|
||||
/**
|
||||
* Filter the site title HTML in the embed footer.
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @param string $site_title The site title HTML.
|
||||
*/
|
||||
echo apply_filters( 'embed_site_title_html', $site_title );
|
||||
?>
|
||||
</div>
|
||||
|
||||
@ -219,13 +228,16 @@ else :
|
||||
<div class="wp-embed-footer">
|
||||
<div class="wp-embed-site-title">
|
||||
<?php
|
||||
printf(
|
||||
$site_title = sprintf(
|
||||
'<a href="%s" target="_top"><img src="%s" srcset="%s 2x" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>',
|
||||
esc_url( home_url() ),
|
||||
esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) ),
|
||||
esc_url( get_site_icon_url( 64, admin_url( 'images/w-logo-blue.png' ) ) ),
|
||||
esc_html( get_bloginfo( 'name' ) )
|
||||
);
|
||||
|
||||
/** This filter is documented in wp-includes/embed-template.php */
|
||||
echo apply_filters( 'embed_site_title_html', $site_title );
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta3-35577';
|
||||
$wp_version = '4.4-beta3-35578';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user