WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#3366 closed defect (bug) (fixed)

images in page titles in wp_list_pages() now appear as html text.

Reported by: chigh Owned by: rob1n
Milestone: 2.2 Priority: low
Severity: minor Version: 2.0.5
Component: General Keywords: has-patch commit
Focuses: Cc:

Description

This may not be considered a bug, but I did want to report this change of behaviour in 2.0.5.

In previous versions of WP, I was able to place a small image in the title of a page. My example, I would place a small image (12x12) of a lock in the title of password protected pages.

In 2.0.4 and prior, the image would be displayed in the list of pages and on the page. In 2.0.5, the behaviour changed. The image is displayed on the page itself and in some other locations, but NOT in the list of pages (such as in the sidebar on the front page - wp_list_pages() ).

Attachments (1)

3366.diff (814 bytes) - added by rob1n 8 years ago.
Well, apparently the the_title filter wasn't being applied. Patch adds filters.

Download all attachments as: .zip

Change History (8)

comment:1 @JeremyVisser9 years ago

Shouldn't you create a really simple plugin to filter the the_title filter when the post is protected? That would be a much better solution.

+1 for making the behaviour of post title handling consistent, though.

@rob1n8 years ago

Well, apparently the the_title filter wasn't being applied. Patch adds filters.

comment:2 @rob1n8 years ago

  • Keywords has-patch added; images wp_list_pages() pages removed

comment:3 @rob1n8 years ago

  • Keywords 2nd-opinion added
  • Milestone set to 2.3

comment:4 @rob1n8 years ago

  • Cc rob1n added
  • Owner changed from anonymous to rob1n

comment:5 @rob1n8 years ago

  • Milestone changed from 2.3 to 2.2

comment:6 @markjaquith8 years ago

  • Keywords commit added; 2nd-opinion removed

+1 for the patch

comment:7 @rob1n8 years ago

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

(In [5164]) Run the post titles through the the_title filter. fixes #3366

Note: See TracTickets for help on using tickets.