Skip to content

Commit

Permalink
Fix coding standard for new sharer
Browse files Browse the repository at this point in the history
  • Loading branch information
albig committed Jul 11, 2024
1 parent 5fca6b2 commit a78aa6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function sunflower_entry_footer( $show_sharers = false ) {
*/
function sunflower_the_social_media_sharers() {

$sharer = [];
$sharer = array();
if ( sunflower_get_setting( 'sunflower_sharer_twitter' ) || sunflower_get_setting( 'sunflower_sharer_x_twitter' ) ) {
$sharer[] = sprintf(
'<a href="https://twitter.com/intent/tweet?text=%s&url=%s" target="_blank" title="%s" class="sharer"><i class="fab fa-x-twitter"></i></a>',
Expand Down Expand Up @@ -137,10 +137,10 @@ function sunflower_the_social_media_sharers() {
);
}

if ( count($sharer) > 0 ) {
if ( count( $sharer ) > 0 ) {
printf(
'<div class="social-media-sharers mb-5">%s</div>',
implode(' ', $sharer)
wp_kses_post( implode( ' ', $sharer ) )
);
}
}
Expand Down

0 comments on commit a78aa6b

Please sign in to comment.