Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 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)

comment:1 @nacin6 years ago

  • Keywords needs-patch added

comment:2 @dd326 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

comment:3 @miqrogroove6 years ago

Thanks for the patch :)

Note: See TracTickets for help on using tickets.