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

Don't search and replace with co-author post_id #624

Merged
merged 1 commit into from
Nov 22, 2018

Conversation

sboisvert
Copy link
Contributor

If the posts_where_filter has already been run (For example is wp_query::get_posts() is run twice). The second time around it will try to replace the co-author's post id inside the query, leading it to not replace the 'wp_posts.post_author = 0' part of the query.

This fixes a compatability issue with Yoast wp-seo

Internal ticket id:85217

If the posts_where_filter has already been run (For example is wp_query::get_posts() is run twice). The second time around it will try to replace the co-author's post id inside the query, leading it to not replace the 'wp_posts.post_author = 0' part of the query.

This fixes a compatability issue with Yoast wp-seo

Internal ticket id:85217
@rebeccahum rebeccahum merged commit 5e5ace6 into master Nov 22, 2018
@rebeccahum rebeccahum deleted the sboisvert-yoast-fix branch November 22, 2018 22:23
@hyperionjrw hyperionjrw mentioned this pull request Nov 27, 2018
rebeccahum added a commit that referenced this pull request Mar 26, 2019
Don't search and replace with co-author post_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants