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

Publicize: revert PENDING flag added to all published posts. #4328

merged 1 commit into from Jul 7, 2016
Changes from all commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

@@ -359,25 +359,7 @@ function get_connection( $service, $id, $_blog_id = false, $_user_id = false ) {
function flag_post_for_publicize( $new_status, $old_status, $post ) {
if ( 'publish' == $new_status && 'publish' != $old_status ) {
* Determines whether a post being published gets publicized.
* Side-note: Possibly our most alliterative filter name.
* @module publicize
* @since 4.1.0
* @param bool $should_publicize Should the post be publicized? Default to true.
* @param WP_POST $post Current Post object.
$should_publicize = apply_filters( 'publicize_should_publicize_published_post', true, $post );
if ( $should_publicize ) {
update_post_meta( $post->ID, $this->PENDING, true );
// Stub only. Doesn't need to do anything on Jetpack Client
function test_connection( $service_name, $connection ) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.