Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: No Comments On Pages] VIRUS WARNING’ is closed to new replies.