Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#11731 closed enhancement (fixed)

single_post_title() Should Use Object ID Instead of post_name?

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

Description

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

get_queried_object() should be adequate here?

Change History (3)

  • Keywords needs-patch added

comment:2   dd323 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

Thanks for the patch :)

Note: See TracTickets for help on using tickets.