-
Notifications
You must be signed in to change notification settings - Fork 312
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
Account for password protected posts via protected_content feature #2408
Account for password protected posts via protected_content feature #2408
Conversation
Hi @rebeccahum , Thanks for submitting the PR! I have done some preliminary testing and have this feedback:
|
Hi @rebeccahum , Also forgot to mention, if you don't have the bandwidth which I know sometimes is the case, just let us know and I can pick things from here, of course giving the appropriate credit. |
@oscarssanchez Thanks so much for testing. I haven't had a chance yet to pick this back up — if you'd like to pick it up on my behalf, that'd be awesome! |
@oscarssanchez On a vanilla install, I'm seeing that the protected password posts are displayed (not the content) when logged in as an admin in the front-end — same with being logged out. |
Hi @rebeccahum , Yes, I should have specified the testing scenario. It should go like this:
I think the front page does not integrate by defualt with EP, so what it displays as of now (unless it is explicitly integrated with the ep_integrate param) is WP default behavior. |
Description of the Change
This PR piggybacks off of the logic in #1913 - however, there were still some bugs in that PR so they should be fixed now. Added tests as well.
Benefits
Password protected posts will no longer unexpectedly show up in the front-end search, but will in the admin search.
Possible Drawbacks
None that comes to mind.
Checklist:
Changelog Entry
Fixed: Account for password protected posts via protected_content feature