Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only check services belonging or shared with user when deciding whether to publicize #6098

Merged
merged 1 commit into from Jan 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/publicize/publicize-jetpack.php
Expand Up @@ -450,7 +450,7 @@ function test_connection( $service_name, $connection ) {
function save_publicized( $post_ID, $post, $update ) {
// Only do this when a post transitions to being published
if ( get_post_meta( $post->ID, $this->PENDING ) && $this->post_type_is_publicizeable( $post->post_type ) ) {
$connected_services = Jetpack_Options::get_option( 'publicize_connections' );
$connected_services = $this->get_services( 'connected' );
if ( ! empty( $connected_services ) ) {
/**
* Fires when a post is saved that has is marked as pending publicizing
Expand Down