Skip to content

Commit

Permalink
Merge pull request #2064 from Automattic/update/sharing-jetpack-site-…
Browse files Browse the repository at this point in the history
…filter

Sharing: Add filter docblock for `is_jetpack_site`
  • Loading branch information
dereksmart committed Jun 14, 2015
2 parents 813f6d7 + e3a4089 commit b0b43b1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/sharedaddy/sharing-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,15 @@ function sharing_add_footer() {
if ( apply_filters( 'jetpack_sharing_counts', true ) && is_array( $jetpack_sharing_counts ) && count( $jetpack_sharing_counts ) ) :
$sharing_post_urls = array_filter( $jetpack_sharing_counts );
if ( $sharing_post_urls ) :

/**
* Defines whether a blog is a Jetpack site.
*
* @since 3.6.0
*
* @param bool false Assumption on whether a blog is a Jetpack site.
* @param int $blog_id A blog ID to check.
*/
$is_jetpack = true === apply_filters( 'is_jetpack_site', false, get_current_blog_id() );
$site_id = $is_jetpack ? Jetpack_Options::get_option( 'id' ) : get_current_blog_id();
?>
Expand Down

0 comments on commit b0b43b1

Please sign in to comment.