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:
parent
4249f900ca
commit
99c7b9b881
|
@ -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];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue