Site Icon: Use new `wp_get_attachment_image_url()` to retrieve URL.

`wp_get_attachment_image_url()` is a nice replacement for `wp_get_attachment_image_src()` here after its introduction in 4.4.

Props imath.
See #34312.

Built from https://develop.svn.wordpress.org/trunk@35571


git-svn-id: http://core.svn.wordpress.org/trunk@35535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2015-11-08 01:59:26 +00:00
parent a4dc43106c
commit d1c09d96bf
2 changed files with 2 additions and 5 deletions

View File

@ -770,10 +770,7 @@ function get_site_icon_url( $size = 512, $url = '', $blog_id = 0 ) {
} else { } else {
$size_data = array( $size, $size ); $size_data = array( $size, $size );
} }
$url_data = wp_get_attachment_image_src( $site_icon_id, $size_data ); $url = wp_get_attachment_image_url( $site_icon_id, $size_data );
if ( $url_data ) {
$url = $url_data[0];
}
} }
/** /**

View File

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