Make WordPress Core

Opened 17 years ago

Closed 17 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: Focuses:

Description

See attached patch.

Isn't the ancestors field always filled now?

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

#2 @westi
17 years ago

  • Milestone 2.9
  • Resolutioninvalid
  • Status newclosed

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.