Make WordPress Core

Opened 8 years ago

Closed 4 years ago

Last modified 4 years ago

#5829 closed enhancement (invalid)

Make _wp_comment_list_item filter the post's title

Reported by: henrikmelin Owned by:
Milestone: Priority: low
Severity: normal Version: 2.3.2
Component: Administration Keywords:
Focuses: Cc:


In the _wp_comment_list_item() function the post title is currently formatted using wp_specialchars. Since this has no hook it is not possible to change or format the title prior to it being displayed.

I propose that the standard formatting filter 'the_title' is applied instead, using get_the_title($post->ID), making it accessible to plugins (and formatted in the same way it is formatted everywhere else, for consistency).

This is dependent on ticket #5746. This change makes the ID available to the 'the_title' filter.

Attachments (1)

5829.diff (621 bytes) - added by henrikmelin 8 years ago.
Patch for 5829

Download all attachments as: .zip

Change History (9)

8 years ago

Patch for 5829

#1 @lloydbudd
8 years ago

  • Milestone set to 2.5

#2 @mattyrob
8 years ago

  • Priority changed from normal to low

-1 on this props.

See this ticket:

A new filter is required rather than mis-applying an existing one IMHO.

#3 @ffemtcj
8 years ago

  • Milestone changed from 2.5 to 2.6

#4 @Denis-de-Bernardy
7 years ago

  • Keywords 2nd-opinion removed

#5 @Denis-de-Bernardy
7 years ago

  • Keywords needs-patch added; has-patch removed

#6 @Denis-de-Bernardy
6 years ago

  • Milestone changed from 2.9 to Future Release
  • Summary changed from Make _wp_comment_list_item use 'the_title' filter to format the title to Make _wp_comment_list_item filter the post's title

-1 for using the_title, but a filter could be added.

#7 @johnbillion
4 years ago

  • Keywords needs-patch removed
  • Resolution set to invalid
  • Status changed from new to closed

_wp_comment_list_item() disappeared in 2.5.

#8 @SergeyBiryukov
4 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.