From fbf8cf39f7ec35489332158cb2f73ea535279e5b Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Wed, 30 Nov 2016 16:22:57 -0500 Subject: Update plugin jetpack to 4.4.1 --- .../jetpack/modules/sharedaddy/sharing-service.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'plugins/jetpack/modules/sharedaddy/sharing-service.php') diff --git a/plugins/jetpack/modules/sharedaddy/sharing-service.php b/plugins/jetpack/modules/sharedaddy/sharing-service.php index 114ac93a..db90a5a8 100644 --- a/plugins/jetpack/modules/sharedaddy/sharing-service.php +++ b/plugins/jetpack/modules/sharedaddy/sharing-service.php @@ -684,8 +684,23 @@ function sharing_display( $text = '', $echo = false ) { // Wrapper $sharing_content .= '
'; - if ( $global['sharing_label'] != '' ) - $sharing_content .= '

' . $global['sharing_label'] . '

'; + if ( $global['sharing_label'] != '' ) { + $sharing_content .= sprintf( + /** + * Filter the sharing buttons' headline structure. + * + * @module sharing + * + * @since 4.4.0 + * + * @param string $sharing_headline Sharing headline structure. + * @param string $global['sharing_label'] Sharing title. + * @param string $sharing Module name. + */ + apply_filters( 'jetpack_sharing_headline_html', '

%s

', $global['sharing_label'], 'sharing' ), + esc_html( $global['sharing_label'] ) + ); + } $sharing_content .= '
    '; // Visible items -- cgit v1.2.3-65-gdbad