Make WordPress Core

Opened 12 years ago

Closed 9 years ago

#23150 closed defect (bug) (fixed)

Sanitize the class passed to wp_list_bookmarks() and allow passing an array

Reported by: ryan's profile ryan Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.3 Priority: normal
Severity: normal Version: 3.5
Component: General Keywords: has-patch commit
Focuses: template Cc:

Description

The class argument to wp_list_bookmarks() could use some sanitization.

While at it, let's enhance it to accept an array of classes like we do elsewhere.

Attachments (2)

23150.diff (688 bytes) - added by ryan 12 years ago.
23150.1.diff (591 bytes) - added by obenland 10 years ago.

Download all attachments as: .zip

Change History (7)

@ryan
12 years ago

#1 @SergeyBiryukov
12 years ago

  • Component changed from General to Template
  • Keywords has-patch added

#2 @nacin
11 years ago

  • Component changed from Template to General
  • Focuses template added

@obenland
10 years ago

#3 @obenland
10 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to Future Release

Refreshed patch.

#4 @wonderboymusic
9 years ago

  • Milestone changed from Future Release to 4.3

#5 @wonderboymusic
9 years ago

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

In 32906:

Sanitize the class passed to wp_list_bookmarks() and allow passing an array.

Props ryan, obenland.
Fixes #23150.

Note: See TracTickets for help on using tickets.