Support » Plugin: Akismet Spam Protection » Bug: Fatal errors due to action hook params mismatch.

  • Akismet calls
    do_action( 'delete_comment', $comment_id );
    and
    do_action( 'deleted_comment', $comment_id );
    while core calls
    do_action( 'delete_comment', $comment->comment_ID, $comment );
    and
    do_action( 'deleted_comment', $comment->comment_ID, $comment );
    respectively, since WP 4.9.

    As a result, if any code is hooked to the above actions and expects 2 parameters, will throw a fatal error due to akismet only providing one.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.