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)

#1 @nacin
6 years ago

  • Keywords needs-patch added

#2 @dd32
6 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
6 years ago

Thanks for the patch :)

Note: See TracTickets for help on using tickets.