WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#4019 closed defect (bug) (fixed)

Filter missing from post title when viewing comment list on admin page

Reported by: jhodgdon Owned by:
Milestone: 2.2 Priority: low
Severity: normal Version: 2.1.2
Component: Administration Keywords: has-patch admin filter title
Focuses: Cc:

Description

Go to the admin panels to moderate a comment, and when you are done, you are presented with a list of all the comments on a single post.

The post title printed at the top of the page, where it says "Comments on xyz" is not filtered, so it may not display in an intelligent manner.

I don't know how to get to this page directly through the menus, but its URL is something like this, if the post number is 23:

http://example.com/blogdir/wp-admin/edit.php?p=23&c=1

Tested in 2.1.2 as well as Trunk [5090]. One-line simple patch coming.

Attachments (1)

edit-php.diff (602 bytes) - added by jhodgdon 7 years ago.
Patch to filter the title - not sure if it needs strip slashes too? Works for me without, but I don't have any slashes in my titles anyway…

Download all attachments as: .zip

Change History (3)

jhodgdon7 years ago

Patch to filter the title - not sure if it needs strip slashes too? Works for me without, but I don't have any slashes in my titles anyway...

comment:1 jhodgdon7 years ago

I just tested it with a title that had quotes in it, no problem with slashes... I guess I am not sure that that is the reason for strip_slashes?

comment:2 ryan7 years ago

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

(In [5094]) Add missing the_title filter. Props jhodgdon. fixes #4019

Note: See TracTickets for help on using tickets.