diff options
Diffstat (limited to 'plugins/jetpack/modules/likes')
-rw-r--r-- | plugins/jetpack/modules/likes/jetpack-likes-master-iframe.php | 2 | ||||
-rw-r--r-- | plugins/jetpack/modules/likes/jetpack-likes-settings.php | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/likes/jetpack-likes-master-iframe.php b/plugins/jetpack/modules/likes/jetpack-likes-master-iframe.php index 38e5f235..9ccca4c1 100644 --- a/plugins/jetpack/modules/likes/jetpack-likes-master-iframe.php +++ b/plugins/jetpack/modules/likes/jetpack-likes-master-iframe.php @@ -4,7 +4,7 @@ * This function needs to get loaded after the like scripts get added to the page. */ function jetpack_likes_master_iframe() { - $version = '20171126'; + $version = gmdate( 'YW' ); $in_jetpack = ( defined( 'IS_WPCOM' ) && IS_WPCOM ) ? false : true; $_locale = get_locale(); diff --git a/plugins/jetpack/modules/likes/jetpack-likes-settings.php b/plugins/jetpack/modules/likes/jetpack-likes-settings.php index cafe111e..b58467a6 100644 --- a/plugins/jetpack/modules/likes/jetpack-likes-settings.php +++ b/plugins/jetpack/modules/likes/jetpack-likes-settings.php @@ -157,6 +157,21 @@ class Jetpack_Likes_Settings { } /** + * WordPress.com: Metabox option for sharing (sharedaddy will handle this on the JP blog) + */ + public function sharing_meta_box_content( $post ) { + $post_id = ! empty( $post->ID ) ? (int) $post->ID : get_the_ID(); + $disabled = get_post_meta( $post_id, 'sharing_disabled', true ); ?> + <p> + <label for="wpl_enable_post_sharing"> + <input type="checkbox" name="wpl_enable_post_sharing" id="wpl_enable_post_sharing" value="1" <?php checked( !$disabled ); ?>> + <?php _e( 'Show sharing buttons.', 'jetpack' ); ?> + </label> + <input type="hidden" name="wpl_sharing_status_hidden" value="1" /> + </p> <?php + } + + /** * Adds the 'sharing' menu to the settings menu. * Only ran if sharedaddy and publicize are not already active. */ |