Skip to content

Commit a75cc2a

Browse files
committed
Site Icon: add missing parameter to jetpack_site_icon_url
See Automattic#1280 (comment)
1 parent c8700e6 commit a75cc2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

class.jetpack-twitter-cards.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static function twitter_cards_define_type_based_on_image_count( $og_tags, $extra
139139

140140
// Third fall back, Site Icon
141141
if ( empty( $og_tags['twitter:image'] ) && ( function_exists( 'jetpack_has_site_icon' ) && jetpack_has_site_icon() ) ) {
142-
$og_tags['twitter:image'] = jetpack_site_icon_url( '240' );
142+
$og_tags['twitter:image'] = jetpack_site_icon_url( null, '240' );
143143
}
144144

145145
// Not falling back on Gravatar, because there's no way to know if we end up with an auto-generated one.

functions.opengraph.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function jetpack_og_get_image( $width = 200, $height = 200, $max_images = 4 ) {
207207

208208
// Third fall back, Site Icon
209209
if ( empty( $image ) && ( function_exists( 'jetpack_has_site_icon' ) && jetpack_has_site_icon() ) ) {
210-
$image[] = jetpack_site_icon_url( '512' );
210+
$image[] = jetpack_site_icon_url( null, '512' );
211211
}
212212

213213
// Fourth fall back, blank image

0 commit comments

Comments
 (0)