Automattic / Automattic/jetpack

Yoast "Rewrite & Republish" feature show as a 404 for Jetpack email subscribers.

Open
#35,099 3 comments 0 reactions 0 assignees View on GitHub
[Feature] Subscriptions [Focus] Compatibility [Plugin] Jetpack [Pri] Normal Bug Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

This came from a user report. Basically, Yoast has a feature called "Rewrite & Republish" which re-creates a post with the same permalink etc and publishes it again.

There is an interaction with Jetpack where the post is published to Jetpack email subscribers but has a broken post_id in the link that is sent out.

The issue is described on the Yoast side here https://github.com/Yoast/duplicate-post/issues/358.

Now it's not initially clear to me whether this bug is on the Yoast side or the Jetpack side or some interaction between the two. There was an internal comment on the yoast side:

> I have confirmed this. The cause seems to be that Jetpack hooks into the publication of the temporary “rewrite & republish” post, which is never actually published. It’s unclear where jetpack hooks in here, but that is the reason it gets the wrong URL.
> Not sure if this is up to us to fix.

I'm raising this bug on the Jetpack side here in case we can fix it on our end, considering Yoast is a very popular wordpress plugin and this bug would impact Jetpack users.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked Yoast issue and the interaction between the temporary Rewrite & Republish post and Jetpack's publication hooks. Reproduce the email sent to Jetpack subscribers and trace how its post_id and URL are selected. Done means Rewrite & Republish posts produce a valid subscriber link without sending a link for the temporary post.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.