BugFix for AJAX comments
-
You should add
&& !wp_doing_ajax()
to thedisplayAttachment()
function as a condition when you checkis_admin()
. Because if a theme gets comments with AJAX, then the plugin doesn’t work correctly (it displays attachments as in dashboard, when they’re on frontend). The issue is explained here: https://facetwp.com/is_admin-and-ajax-in-wordpress/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘BugFix for AJAX comments’ is closed to new replies.