Disable Self-Pingbacks (6 posts)

  1. skippy
    Posted 12 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
    Posted 12 years ago #

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

  3. skippy
    Posted 12 years ago #

    Looks like we can add a condition to the test on line 1079 in wp-includes/functions.php:
    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
    Posted 12 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
    Posted 11 years ago #

  6. mickej
    Posted 10 years ago #

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


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.