Skip to content

Commit

Permalink
Fix mobile site icon defaults
Browse files Browse the repository at this point in the history
#fix
  • Loading branch information
aduth committed May 27, 2017
1 parent a235448 commit de64302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ function dones_assign_done_tags( $post_id, $post ) {
* @return string $url Site icon URL, or default value
*/
function dones_default_site_icon( $url, $size ) {
$icon_sizes = array( '32', '180', '192', '270', '512' );
$icon_sizes = array( 32, 180, 192, 270, 512 );
if ( empty( $url ) && in_array( $size, $icon_sizes ) ) {
return get_theme_file_uri( sprintf( '/img/icon-%d.png', $size ) );
}
Expand Down

0 comments on commit de64302

Please sign in to comment.