Site Icon: Add Android-specific app icon.
Falling back to Apple app icons is deprecated behavior and will not work forever. 192px is the recommended size for that icon. Props kraftbj. Fixes #32964. git-svn-id: https://develop.svn.wordpress.org/trunk@33202 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b1a3776a86
commit
804a008eb1
@ -39,6 +39,14 @@ class WP_Site_Icon {
|
||||
*/
|
||||
270,
|
||||
|
||||
/*
|
||||
* App icon for Android/Chrome.
|
||||
*
|
||||
* @link https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
|
||||
* @link https://developer.chrome.com/multidevice/android/installtohomescreen
|
||||
*/
|
||||
192,
|
||||
|
||||
/*
|
||||
* App icons up to iPhone 6 Plus.
|
||||
*
|
||||
|
@ -2451,6 +2451,7 @@ function wp_site_icon() {
|
||||
|
||||
$meta_tags = array(
|
||||
sprintf( '<link rel="icon" href="%s" sizes="32x32" />', esc_url( get_site_icon_url( null, 32 ) ) ),
|
||||
sprintf( '<link rel="icon" href="%s" sizes="192x192" />', esc_url( get_site_icon_url( null, 192 ) ) ),
|
||||
sprintf( '<link rel="apple-touch-icon-precomposed" href="%s">', esc_url( get_site_icon_url( null, 180 ) ) ),
|
||||
sprintf( '<meta name="msapplication-TileImage" content="%s">', esc_url( get_site_icon_url( null, 270 ) ) ),
|
||||
);
|
||||
|
@ -67,6 +67,7 @@ class Tests_General_Template extends WP_UnitTestCase {
|
||||
$this->_set_site_icon();
|
||||
$output = array(
|
||||
sprintf( '<link rel="icon" href="%s" sizes="32x32" />', esc_url( get_site_icon_url( null, 32 ) ) ),
|
||||
sprintf( '<link rel="icon" href="%s" sizes="192x192" />', esc_url( get_site_icon_url( null, 192 ) ) ),
|
||||
sprintf( '<link rel="apple-touch-icon-precomposed" href="%s">', esc_url( get_site_icon_url( null, 180 ) ) ),
|
||||
sprintf( '<meta name="msapplication-TileImage" content="%s">', esc_url( get_site_icon_url( null, 270 ) ) ),
|
||||
'',
|
||||
@ -89,6 +90,7 @@ class Tests_General_Template extends WP_UnitTestCase {
|
||||
$this->_set_site_icon();
|
||||
$output = array(
|
||||
sprintf( '<link rel="icon" href="%s" sizes="32x32" />', esc_url( get_site_icon_url( null, 32 ) ) ),
|
||||
sprintf( '<link rel="icon" href="%s" sizes="192x192" />', esc_url( get_site_icon_url( null, 192 ) ) ),
|
||||
sprintf( '<link rel="apple-touch-icon-precomposed" href="%s">', esc_url( get_site_icon_url( null, 180 ) ) ),
|
||||
sprintf( '<meta name="msapplication-TileImage" content="%s">', esc_url( get_site_icon_url( null, 270 ) ) ),
|
||||
sprintf( '<link rel="apple-touch-icon" sizes="150x150" href="%s">', esc_url( get_site_icon_url( null, 150 ) ) ),
|
||||
|
Loading…
Reference in New Issue
Block a user