Skip to content

Commit

Permalink
slimify
Browse files Browse the repository at this point in the history
  • Loading branch information
simison committed Nov 22, 2024
1 parent 519ae2c commit 9df1308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/plugins/jetpack/extensions/blocks/like/like.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function render_block( $attr, $content, $block ) {
$bloginfo = get_blog_details( (int) $blog_id );
$domain = $bloginfo->domain;
$reblog_param = $show_reblog_button ? '&reblog=1' : '';
$show_avatars_param = $show_avatars ? '&__TODO__=1' : '';
$show_avatars_param = $show_avatars ? '&slim=1' : '';
$src = sprintf( '//widgets.wp.com/likes/index.html?ver=%1$s#blog_id=%2$d&post_id=%3$d&origin=%4$s&obj_id=%2$d-%3$d-%5$s%6$s&block=1%7$s%8$s', rawurlencode( JETPACK__VERSION ), $blog_id, $post_id, $domain, $uniqid, $new_layout, $reblog_param, $show_avatars_param );

// provide the mapped domain when needed
Expand All @@ -109,7 +109,7 @@ function render_block( $attr, $content, $block ) {
$url = home_url();
$url_parts = wp_parse_url( $url );
$domain = $url_parts['host'];
$show_avatars_param = $show_avatars ? '&__TODO__=1' : '';
$show_avatars_param = $show_avatars ? '&slim=1' : '';
$src = sprintf( 'https://widgets.wp.com/likes/?ver=%1$s#blog_id=%2$d&post_id=%3$d&origin=%4$s&obj_id=%2$d-%3$d-%5$s%6$s&block=1%7$s', rawurlencode( JETPACK__VERSION ), $blog_id, $post_id, $domain, $uniqid, $new_layout, $show_avatars_param );
}

Expand Down

0 comments on commit 9df1308

Please sign in to comment.