Opened 4 years ago

Closed 4 years ago

#10361 closed enhancement (invalid)

Needless query in get_body_class()

Reported by: Denis-de-Bernardy Owned by:
Priority: normal Milestone:
Component: Optimization Version: 2.8
Severity: normal Keywords: has-patch
Cc:

Description

See attached patch.

Isn't the ancestors field always filled now?

Attachments (1)

10361.diff (522 bytes) - added by Denis-de-Bernardy 4 years ago.

Download all attachments as: .zip

Change History (3)

  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Status changed from new to closed

I don't think that var is currently setup when querying.

You would need to call get_post_ancestors().

Anyway this code is seeing if we have any children not any ancestors and marking us as a parent.

Closing as INVALID.

Note: See TracTickets for help on using tickets.