• qedanne

    (@qedanne)


    I have developed the CommentTweets plugin and is running it on my blog without problems, but I just got a bug report from one of my users and I simply cannot figure out what the problem is.

    I use the actions comment_post and transition_comment_status like this:
    add_action(‘comment_post’, ‘cn_main_twitter_notification’);
    add_action(‘transition_comment_status’,’cn_wrap_main_twitter_notification_2′);

    function cn_main_twitter_notification($comment_id, $status) {

    }

    function cn_wrap_main_twitter_notification_2($new_status,$old_status,$comment){

    }

    My user is getting these error messages:

    PHP Warning: Missing argument 3 for cn_wrap_main_twitter_notification_2() in …wp-content/plugins/commenttweets/TwitterCommentNotification.php on line 123

    PHP Warning: Missing argument 2 for cn_main_twitter_notification() in …wp-content/plugins/commenttweets/TwitterCommentNotification.php on line 132

    but as far as I can tell the two function calls should have the right number of arguments.

    Can anyone tell me what the problem is?

Viewing 1 replies (of 1 total)
  • Hi
    Try : add_action(‘transition_comment_status’,’cn_wrap_main_twitter_notification_2′,10,2);

Viewing 1 replies (of 1 total)
  • The topic ‘Problems with actions comment_post and transition_comment_status’ is closed to new replies.