WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#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:

Description

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 5 years ago.

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
5 years ago

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

#2 @SergeyBiryukov
5 years ago

  • Keywords commit added

#3 @SergeyBiryukov
5 years 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.