WordPress.org

Ready to get started?Download WordPress

Forums

Disable Self-Pingbacks (6 posts)

  1. skippy
    Member
    Posted 10 years ago #

    I'm in the habit of linking to my own previous posts a great deal when I post. When I do this, WP sends a pingback to itself, and I get an email about the matter.
    Sometimes my self-link will be the only link in a post, so I could untick the "pingback URLs" checkbox. But sometimes I refer to my previous posts _and_ I want to pingback other people in the same post.
    I'd like to request that WP not pingback itself.
    For those instances where there are multi-author blogs who _want_ to pingback entries from other authors on the same WP install, perhaps this should be a global option?

  2. Hella
    Member
    Posted 10 years ago #

    I agree, it would be a nice option to NOT pingback your own site.

  3. skippy
    Member
    Posted 10 years ago #

    Looks like we can add a condition to the test on line 1079 in wp-includes/functions.php:
    original:
    foreach($post_links_temp[0] as $link_test){
    $test = parse_url($link_test);
    if (isset($test['query'])) {
    $post_links[] = $link_test;
    } elseif(($test['path'] != '/') && ($test['path'] != '')) {
    $post_links[] = $link_test;
    }
    }
    Modify the elseif line to look like:
    } elseif(($test['path'] != '/') && ($test['path'] != '') && ($test['host'] != $_SERVER['SERVER_NAME']) {
    Note: I have not tested this yet.
    Suggestions for a more WordPress-ish solution?

  4. Laughinglizard
    Member
    Posted 10 years ago #

    I believe that this has already been taken care of in the CVS/nightly versions. If I am wrong, could the devs please correct me?

  5. gregh
    Member
    Posted 9 years ago #

  6. mickej
    Member
    Posted 8 years ago #

    This may be an ugly solution that i use, but it seem to work:

    http://wordpress.org/support/topic/60763?replies=5#post-327154

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.