Comments disappear after WordPress 5.5 update


Author Message
Paolo

Posted: 8/21/2020
Quote message 

Quote Rick:

I had the same problem, no settings in the widgets, no tabs working, no comments and no image upload anymore. It seems the jquery in Artisteer has older/different scripts.

I solved this by installing this Wordpress plugin Test jQuery Updates. It has 3 options but i changed just the first option jQuery version from default to 3.5.1.

All is working again.
Hope this is helpfull for you too


Thanks for the suggestion but it did not work for me.
If I check the HTML code of the page, I see that only the original version of jQuery is loaded (1.9.1) regardless of the plugin settings.

Paolo

 
Ulfsby Webdesign

Posted: 9/1/2020
Quote message 

The WordPress team seems to be aware of the problem, see https://core.trac.wordpress.org/ticket/51082
 
Alan Henness

Posted: 9/2/2020
Quote message 

The code suggested by @SergeyBiryukov on that WordPress page is:

function wp51082_restore_empty_comment_type_on_frontend( $comment ) {

if ( ! is_admin() && 'comment' === $comment->comment_type ) {
$comment->comment_type = '';
}

return $comment;
}
add_filter( 'get_comment', 'wp51082_restore_empty_comment_type_on_frontend' );


This code placed at the end of functions.php for the theme has fixed the issue for me on the two sites I've added it to. That might be easier than changing the code as paolo suggested above.