Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#11731 closed enhancement (fixed)

single_post_title() Should Use Object ID Instead of post_name?

Reported by: miqrogroove Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Template Keywords: needs-patch
Focuses: Cc:


Isn't it silly for single_post_title() to do its own post query?

get_queried_object() should be adequate here?

Change History (3)

#1 @nacin
12 years ago

  • Keywords needs-patch added

#2 @dd32
12 years ago

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

(In [13502]) Use $wp_query->get_queried_object() in single_post_title(). Fixes #11731

#3 @miqrogroove
12 years ago

Thanks for the patch :)

Note: See TracTickets for help on using tickets.