Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#24903 closed defect (bug) (maybelater)

Data returned via wp_count_comments() should be handled properly on output

Reported by: jeremyfelt Owned by:
Priority: normal Milestone:
Component: Comments Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

There are a few cases in core where data returned from wp_count_comments() is used immediately to output without escaping it properly. While core provides the correct data types, a filter can be used to modify the data completely before it has a chance to do so. It makes sense to cast these as (int) when necessary.

Attachments (1)

24903.diff​ (2.4 KB ) - added by jeremyfelt 13 years ago.

Download all attachments as: .zip

Change History (4)

@jeremyfelt
13 years ago

#1 @jeremyfelt
13 years ago

  • Milestone Awaiting Review

This may be overkill. Ripe for reopening if not. :)

This ticket was mentioned in IRC in #wordpress-dev by nacin. ​View the logs.


13 years ago

#3 @SergeyBiryukov
13 years ago

  • Resolution → maybelater
  • Status new → closed
Note: See TracTickets for help on using tickets.