From 9df1308d9de2a6c460afa4117f49394e853f7e8c Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Wed, 20 Nov 2024 21:22:58 +0200 Subject: [PATCH] slimify --- projects/plugins/jetpack/extensions/blocks/like/like.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/plugins/jetpack/extensions/blocks/like/like.php b/projects/plugins/jetpack/extensions/blocks/like/like.php index 6b9180f7705d2..eb76afbddb9e7 100644 --- a/projects/plugins/jetpack/extensions/blocks/like/like.php +++ b/projects/plugins/jetpack/extensions/blocks/like/like.php @@ -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 @@ -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 ); }