Forums

[Plugin: No Comments On Pages] VIRUS WARNING (3 posts)

  1. rrryan
    Member
    Posted 3 years ago #

    WAtch out! The author info page for this one points to a dead end because the plugin injects a malicious Psyme.QM trojan downlaoder. DO NOT INSTALL THIS PLUGIN!

    http://wordpress.org/extend/plugins/no-comments-on-pages/

  2. JakaJancar
    Member
    Posted 3 years ago #

    Aheh... Exactly in which of the 10 lines of source code, does this, in your opinion, happen?

    function ncop_comments_open_filter($open, $post_id=null)
    {
        return $open && get_post($post_id)->post_type !== 'page';
    }
    
    function ncop_comments_template_filter($file)
    {
        return is_page() ? dirname(__FILE__).'/empty' : $file;
    }
    
    add_filter('comments_open', 'ncop_comments_open_filter', 10, 2);
    add_filter('comments_template', 'ncop_comments_template_filter', 10, 1);

    Idiot.

  3. dound
    Member
    Posted 3 years ago #

    Ditto. It is just fine as far as I can tell ...

Topic Closed

This topic has been closed to new replies.

About this Topic