WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 5 years ago

#23150 closed defect (bug) (fixed)

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

Reported by: ryan Owned by: 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 8 years ago.
23150.1.diff (591 bytes) - added by obenland 6 years ago.

Download all attachments as: .zip

Change History (7)

@ryan
8 years ago

#1 @SergeyBiryukov
8 years ago

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

#2 @nacin
7 years ago

  • Component changed from Template to General
  • Focuses template added

@obenland
6 years ago

#3 @obenland
6 years ago

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

Refreshed patch.

#4 @wonderboymusic
5 years ago

  • Milestone changed from Future Release to 4.3

#5 @wonderboymusic
5 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.