Caution! Duplicate Post Eraser's little secret

Malachute

Junior Member
Joined
Oct 21, 2009
Messages
124
Reaction score
423
I've tried this on several themes but can conclude that the plugin "Duplicate Post Eraser" will insert an invisible snippet into your theme. In the advanced newspaper theme from Gabfire, its inserted right below the featured posts. (see the attachments with the red arrow). Moreover, this also happens on self-made themes.

When disabling the plugin, the code disappears.

However I wasn't able to find anything in the code of the plugin, so I have no idea where it comes from.

Also check the other attachments. Can someone else confirm this? Just install it right from the WordPress.org database and check your blog's source code.

The previous version was known as "duplicate post eraZer" (not with an "s")
 

Attachments

  • Screen shot 2010-11-23 at 11.48.22 AM.png
    Screen shot 2010-11-23 at 11.48.22 AM.png
    16.1 KB · Views: 64
  • noobplugin1.png
    noobplugin1.png
    298.2 KB · Views: 54
  • noobplugin2.jpg
    noobplugin2.jpg
    17.5 KB · Views: 44
It is there in the plugin code, you just have to scroll down past the white space between the main code and the code that adds the link. You'll see this comment:

/*
If you like my work, please leave the snippet below.
Otherwise, just delete it, and the plugin will still work as normal.
*/

If you don't want the link delete everything after:

add_action('publish_post', 'clearDuplicatePosts');

except the closing PHP tag at the end of the file.
 
It is there in the plugin code, you just have to scroll down past the white space between the main code and the code that adds the link. You'll see this comment:



If you don't want the link delete everything after:



except the closing PHP tag at the end of the file.

thanks for your guidance brother. i have never notice it.
 
Back
Top