Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
n/a
0 / 0
jp_the_social_shares
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * Utility functions that should live in the global namespace.
4 *
5 * @package automattic/jetpack-social-plugin
6 */
7
8/**
9 * A convenience function for themes, to output the social shares for the given post
10 *
11 * @param int $post_id The ID of the post being shared.
12 */
13function jp_the_social_shares( $post_id = 0 ) {
14    echo Social_Shares::get_the_social_shares( $post_id ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in Social_Shares::get_the_social_shares.
15}