Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#23217 closed defect (bug) (fixed)

Pingback url array isn't uniqued before pings are sent

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

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

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
14 years ago

  • Milestone Awaiting Review → 3.6
  • Version trunk → 1.2

#2 @SergeyBiryukov
14 years ago

  • Keywords commit added

#3 @SergeyBiryukov
14 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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.