summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2016-11-30 16:22:57 -0500
committerAnthony G. Basile <blueness@gentoo.org>2016-11-30 16:22:57 -0500
commitfbf8cf39f7ec35489332158cb2f73ea535279e5b (patch)
treeb8025a3b964e60077492449c0e35bf675bcd6939 /plugins/jetpack/modules/sharedaddy/sharing-service.php
parentUpdate plugin openid to 3.4.2 (diff)
downloadblogs-gentoo-fbf8cf39f7ec35489332158cb2f73ea535279e5b.tar.gz
blogs-gentoo-fbf8cf39f7ec35489332158cb2f73ea535279e5b.tar.bz2
blogs-gentoo-fbf8cf39f7ec35489332158cb2f73ea535279e5b.zip
Update plugin jetpack to 4.4.1
Diffstat (limited to 'plugins/jetpack/modules/sharedaddy/sharing-service.php')
-rw-r--r--plugins/jetpack/modules/sharedaddy/sharing-service.php19
1 files changed, 17 insertions, 2 deletions
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 .= '<div class="sharedaddy sd-sharing-enabled"><div class="robots-nocontent sd-block sd-social sd-social-' . $global['button_style'] . ' sd-sharing">';
- if ( $global['sharing_label'] != '' )
- $sharing_content .= '<h3 class="sd-title">' . $global['sharing_label'] . '</h3>';
+ 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', '<h3 class="sd-title">%s</h3>', $global['sharing_label'], 'sharing' ),
+ esc_html( $global['sharing_label'] )
+ );
+ }
$sharing_content .= '<div class="sd-content"><ul>';
// Visible items