[wp-trac] [WordPress Trac] #28159: get_body_class makes a raw, uncacheable query for child posts

WordPress Trac noreply at wordpress.org
Sat Jun 7 03:21:48 UTC 2014


#28159: get_body_class makes a raw, uncacheable query for child posts
------------------------------+-----------------------------
 Reporter:  rmccue            |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.0
Component:  Themes            |     Version:  2.8
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  template
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28696"]:
 {{{
 #!CommitTicketReference repository="" revision="28696"
 Use get_pages() instead of a raw SQL query in get_body_class().

 fixes #28159.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28159#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list