If you uncheck "Show sharing buttons on this post." and you later edit that post via Quick Edit or Bulk Edit, sharing_disabled post meta value is deleted so it removes user selected option.
This is caused by wrong code in sharedaddy.php, lines 44-47. Instead of
if ( isset( $_POST['sharing_status_hidden'] ) && !isset( $_POST['enable_post_sharing'] ) )
update_post_meta( $post_id, 'sharing_disabled', 1 );
else
delete_post_meta( $post_id, 'sharing_disabled' );
you should have
if ( isset( $_POST['sharing_status_hidden'] ) ) {
if ( !isset( $_POST['enable_post_sharing'] ) )
update_post_meta( $post_id, 'sharing_disabled', 1 );
else
delete_post_meta( $post_id, 'sharing_disabled' );
}
Some suggestions:
$content = sprintf( __( '%s (%s) thinks you may be interested in the following post:'."\n\n", 'sharedaddy' ), $data['name'], $data['source'] );would be better as$content = sprintf( __( '%1$s (%2$s) thinks you may be interested in the following post:'."\n\n", 'sharedaddy' ), $data['name'], $data['source'] );- i18n of services' names in sharing-sources.php (Twitter, StumbleUpon, etc)
- adding another parameter to
sharing_permalinkparameter that includes name of service (for example, someone might want to filter permalink only for Twitter) - using wp_enqueue instead of hard coding for CSS & JS
- mnification of sharing.js and sharing.css; you can have .dev.js versions as WP core for raw code