Thread Starter
rcain
(@rcain)
update:
I’ve fixed the issue by modifying your code slightly: vis:
file: /unlist-posts/class-unlist-posts.php ::
class: Unlist_Posts :
function: post_navigation_clause :
line: 131 (approx):
...
// mod jrc 030621: fixup for visibility of other hidden whilst viewing hidden:
// orig: if ( ( is_admin() && ! wp_doing_ajax() ) || in_array( get_the_ID(), $hidden_posts, true ) || empty( $hidden_posts ) ) {
if ( ( is_admin() && ! wp_doing_ajax() ) || empty( $hidden_posts ) ) {
// end mod jrc 030621:
...
function: comments_clauses :
line: 207 (approx) :
...
// mod jrc 030621: fixup for visibility of other hidden whilst viewing hidden:
// orig: if ( ( is_admin() && ! wp_doing_ajax() ) || in_array( get_the_ID(), $hidden_posts, true ) || empty( $hidden_posts ) ) {
if ( ( is_admin() && ! wp_doing_ajax() ) || empty( $hidden_posts ) ) {
// end mod jrc 030621:
...
done: tested – all seems to work as required – ok
todo: i wonder if you could take a quick look at this and check there aren’t any undesirable side effects that I’ve overlooked. If all is OK with you, wonder if you could apply change to next release?
Thanks again
Rob Cain
-
This reply was modified 9 months, 3 weeks ago by rcain.
Hello @rcain
Thanks for bringing this to our notice.
We could confirm the same and the solution works as well.
This should be fixed after further testing and an update will be available soon.
Much appreciated to bringing this to us. 🙂 Do mark the topic as resolved
once the issue has been resolved.
Hello,
This has been fixed in the last update of the plugin – https://wordpress.org/plugins/unlist-posts/#developers
Please update the plugin to have this working for you 🙂