Hi @odak71,
iThemes Security has an upgrade routine that removes certain posts in the itsec-dash-card post type. We’ve had one other report where unexpected posts were deleted when upgrading to iThemes Security.
It turned out to be caused by a plugin that was modifying the database query iThemes Security was making. In that case it was the “More Fields” WordPress plugin. Do you happen to have that plugin installed?
Is it this version of the plugin @odak71? https://wordpress.org/plugins/more-fields/ Or is it from somewhere else?
The issue is on https://plugins.trac.wordpress.org/browser/more-fields/trunk/more-fields-rewrite-object.php#L37 and https://plugins.trac.wordpress.org/browser/more-fields/trunk/more-fields-rewrite-object.php#L52.
Both of the filters return false when they should be returning the original $join and $where variables respectively.
Since the plugin isn’t maintained anymore, I’d recommend finding an alternative. But you could make those adjustments yourself. You can find the corrected version of the file here: https://gist.github.com/TimothyBJacobs/2f6762966f2606d6b03980e3ea9c1035
Thread Starter
ODAK71
(@odak71)
Thank you very much. As quick solution, i use your gist, but i will replace the more-fields plugin with the ACF-Plugin.
Hi,
I had exactly the same issue but the fix helped.
Wordpress is always full of surprises. It’s good
to know that the community works.
Thank you!