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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35571 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jeremy Felt 2015-11-08 01:58:56 +00:00
parent 4249f900ca
commit 99c7b9b881
1 changed files with 1 additions and 4 deletions

View File

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