Menu Close
How Can We Help?
You are here:
Print

Remove Preview Window from Admin Comments page

Open /wp-content/plugins/akismet/_inc/akismet.js
Line 86 (or search for “mouseover”), add :

// Show a preview image of the hovered URL.
WPAkismet.enable_mshots = false;

Line 138 (or search for “mouseover” again), delete all this code:

// When the mouse hovers over a comment row, begin preloading mshots for any links in the comment or the comment author.
var linksToPreloadMshotsFor = $( this ).find( mshotEnabledLinkSelector );
			
linksToPreloadMshotsFor.each( function () {
  // Don't attempt to preload an mshot for a single link twice. Browser caching should cover this, but in case of
  // race conditions, save a flag locally when we've begun trying to preload one.
  if ( ! $( this ).data( 'akismet-mshot-preloaded' ) ) {
    akismet_preload_mshot( $( this ).attr( 'href' ) );
    $( this ).data( 'akismet-mshot-preloaded', true );
  }
} );

I really don’t understand this Preview Window “feature” in WordPress comments. The Preview Window opens an iFrame and connects directly to the spammer URL… As if spam comments aren’t bad enough, now WordPress make sure to give your personal admin IP address to the spammer too. ffs

Credits @ Remove link preview in discussion dashboard – https://wordpress.stackexchange.com/questions/307542/remove-link-preview-in-discussion-dashboard

Comments are welcome.