Forums

Need correct hook before comment post (5 posts)

  1. pekeltje
    Member
    Posted 1 year ago #

    Hello,

    I created some time ago (when i was making a wordpress site for some friends) a anti-spam plugin called spam-free

    You can find it here:
    http://wordpress.org/extend/plugins/spam-free/

    I never use it anymore and i hear (And tested few minutes ago) and it doesnt work anymore in 3.0.1

    The error:
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /public/sites/wordpress.jordykroeze.com/wp-includes/classes.php on line 324

    The error is created by the hook that activate the anti spam check:
    add_action('nocache_headers', 'antispamcheck');

    But since i dont use wordpress anymore and im not following the changes i dont know anymore how to fix this problem.

    Can someone help me?

    Thanks,
    Jordy Kroeze

  2. pekeltje
    Member
    Posted 1 year ago #

    Someone?

  3. pekeltje
    Member
    Posted 1 year ago #

    Does someone know the answer?

  4. pekeltje
    Member
    Posted 1 year ago #

    Does someone know the answer?

  5. Sergey Biryukov
    Member
    Posted 10 months ago #

    nocache_headers is a filter, not an action. It expects you to return an array in the hooked function.

    If you need to stop execution early, you can use plugins_loaded action:
    http://codex.wordpress.org/Plugin_API/Action_Reference

Topic Closed

This topic has been closed to new replies.

About this Topic