mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
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:
parent
80116f2136
commit
3def1c5014
@ -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' ) )
|
||||
);
|
||||
?>
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user