[wp-trac] [WordPress Trac] #21285: Don't ping yourself, especially on localhost

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 16 03:33:32 UTC 2012


#21285: Don't ping yourself, especially on localhost
------------------------------+-----------------------------
 Reporter:  wonderboymusic    |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Pings/Trackbacks  |    Version:  1.2
 Severity:  normal            |   Keywords:  has-patch
------------------------------+-----------------------------
 This may just be a conversation starter, but I know these things to be
 true:

 1) there is duplicated code spread between pingback( ) and do_enclose(
 )[[BR]]
 2) If your post contains a bunch of links to your own site, and you save
 your post in the admin, you will ended up with memory leaks all over the
 place / seg faults / etc when you get hammered by HEAD requests triggered
 by the immediate cron that is spawned by the post being saved[[BR]]
 3) you probably don't need to trackback yourself anyways

 I moved some dupe code into functions and added some checks so we don't
 ping ourself when saving

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21285>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list