post_status issue
-
Hi!
Thanks for plugin!
I found an issue with [timeline-express] shortcode where it can display privately published timeline posts.In file timeline-express/lib/classes/class-timeline-express-initialize.php
In generate_timeline_express function you don’t pass post_status to WP_QUERY, and save result to transient cache.
And if you open the page first with logged in user, WP_QUERY uses default values ‘publish, private’.
And after that if you open the page in incognito, there will be ‘cached’ private posts displayed.To fix:
timeline-express/lib/classes/class-timeline-express-initialize.php
in $announcement_args in ~ line 300 add ‘post_status’ => ‘publish’
- The topic ‘post_status issue’ is closed to new replies.