Embeds: Provide a site icon via srcset for HiDPI screens.

Fixes #34433.
Built from https://develop.svn.wordpress.org/trunk@35409


git-svn-id: http://core.svn.wordpress.org/trunk@35373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-10-27 21:00:24 +00:00
parent 80116f2136
commit 3def1c5014
2 changed files with 6 additions and 4 deletions

View File

@ -124,10 +124,11 @@ if ( have_posts() ) :
<div class="wp-embed-site-title">
<?php
printf(
'<a href="%s" target="_top"><img src="%s" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>',
'<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_attr( get_bloginfo( 'name' ) )
esc_url( get_site_icon_url( 64, admin_url( 'images/w-logo-blue.png' ) ) ),
esc_html( get_bloginfo( 'name' ) )
);
?>
</div>
@ -214,9 +215,10 @@ else :
<div class="wp-embed-site-title">
<?php
printf(
'<a href="%s" target="_top"><img src="%s" width="32" height="32" alt="" class="wp-embed-site-icon"/><span>%s</span></a>',
'<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' ) )
);
?>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-beta1-35408';
$wp_version = '4.4-beta1-35409';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.