Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 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 @nacin5 years ago

  • Keywords needs-patch added

comment:2 @dd325 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 @miqrogroove5 years ago

Thanks for the patch :)

Note: See TracTickets for help on using tickets.