Make WordPress Core

#23217 closed defect (bug) (fixed)

Pingback url array isn't uniqued before pings are sent

Reported by: dllh Owned by: SergeyBiryukov
Milestone: 3.6 Priority: normal
Severity: normal Version: 1.2
Component: Pings/Trackbacks Keywords: has-patch commit
Focuses: Cc:


If you specify the same url in a post more than once, it gets hit with a pingback once for each time it appears. We should only ever ping a link once for a given post. This is easily resolved by performing an array_unique() before doing the pings. Patch attached.

Attachments (1)

unique_pingbacks.patch (415 bytes) - added by dllh 15 months ago.

Download all attachments as: .zip

Change History (4)

dllh15 months ago

comment:1 SergeyBiryukov15 months ago

  • Milestone changed from Awaiting Review to 3.6
  • Version changed from trunk to 1.2

comment:2 SergeyBiryukov15 months ago

  • Keywords commit added

comment:3 SergeyBiryukov14 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 23571:

Make sure the pings are only sent once per URL for a given post. props dllh. fixes #23217.

Note: See TracTickets for help on using tickets.