SLoGH
Forum Replies Created
-
Hi professor99,
Thank you very much for your great effort making the fork and updating this awesome plugin.
Yes, the bug was showing comments for last post listed on the dashboard even having comments disabled through the admin panel for that page.
I found about the wp_reset_postdata(); function looking how function WP_query works and I read somewhere that having one loop inside another could cause some problems, and that the reset could help.
There is no reason why i used it inside the loop, i guess it was the first place where i tried, it worked so i went to something else ?? I didnt spend much time looking into it.
I have tried putting wp_reset_postdata(); outside both loops and at the end of the function and it seems is fixing the problem too so I guess its better to put it there so that the function is not called in each loop’s iteration.
my fix only works for the ‘comments always showing’ error. It worked for me with version 1.1.0-fork-2RRR-4.3 too. Just add
wp_reset_postdata();
on line 272 for the fork version.Hi, i had the same problem, its seems its a problem with WP_query. I havent looked too much into it but adding
wp_reset_postdata();
on line 169 in wpuf-dashboard.php outside the loop of$dashboard_query->have_posts()
seems to have solved it for me. I havent tested it yet so be careful using this fix as it may break other things ??