WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#3894 closed defect (bug) (fixed)

Titles of drafts are displayed unfiltered

Reported by: jhodgdon Owned by:
Milestone: 2.2 Priority: normal
Severity: normal Version: 2.1.1
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

On the Admin / Manage / Posts page, the list of Drafts at the top displays the titles unfiltered. Below, in the list of published posts, the titles are filtered (uses the_title function). So it is inconsistent.

The filtered titles are better with plugins, especially (for my purposes) Polyglot, which uses special tags to indicate different languages.

Solution: filter the post titles in the Draft section using the "the_title" filter, for consistency with the section below.

Attachments (2)

edit.php.diff (1.1 KB) - added by jhodgdon 9 years ago.
Patch for wp-admin/edit.php to add filtering to Draft post title display
edit.php.2.diff (1.1 KB) - added by jhodgdon 8 years ago.
New patch with stripslashes inside (still works fine for purposes of fixing bug)

Download all attachments as: .zip

Change History (5)

@jhodgdon9 years ago

Patch for wp-admin/edit.php to add filtering to Draft post title display

comment:1 @markjaquith8 years ago

  • Keywords needs-patch added; has_patch removed

jhodgdon, change it so that it stripslashes before running the filter (move the stripslashes call inside) and this should be good to go.

@jhodgdon8 years ago

New patch with stripslashes inside (still works fine for purposes of fixing bug)

comment:2 @jhodgdon8 years ago

  • Keywords has-patch added; needs-patch removed

comment:3 @markjaquith8 years ago

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

(In [4966]) Pass draft titles through the_title filter. Props jhodgdon. fixes #3894

Note: See TracTickets for help on using tickets.