How to auto-approve internal pingbacks?

Whenever I write a post on my blog and link to a previous post, that pingback shows up as a comment needing to be approved.

I am running Disqus, but this was happening even pre-use of that plugin.

Read More

comment settings

What is the fix for this behavior?

Related posts

Leave a Reply

2 comments

  1. The comment handling is somewhat difficult to follow in code. My educated guess is that you have comment whitelist enabled (Comment author must have previously approved comment), but since pingbacks are not identifiable by author they are treated as requiring moderation.

  2. you may use this plugin :
    http://wordpress.org/extend/plugins/disabler/

    i found this function somewhere on the internet (but can’t remember where…). it may do what you are looking for :

    // Remove self pings
    add_action( 'pre_ping', 'my_no_self_ping' );
    function my_no_self_ping( &$links ) {
        $home = get_option( 'home' );
        foreach ( $links as $l => $link )
            if ( 0 === strpos( $link, $home ) )
                unset( $links[$l] );
    }