Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#1700 closed defect (bug) (fixed)

Sub-post objects are returned in every query

Reported by: skeltoac's profile skeltoac Owned by:
Milestone: Priority: high
Severity: normal Version: 1.6
Component: Optimization Keywords: object image uploading
Focuses: Cc:


Starting to use objects in wp_posts now, so we're going to have to exclude them from the usual queries. I made WP_Query slightly aware of objects, enough so it won't show them unless instructed via $wp_query->is_object.

Attachments (1)

1700.diff (811 bytes) - added by skeltoac 19 years ago.
classes.php diff

Download all attachments as: .zip

Change History (3)

19 years ago

classes.php diff

#1 @ryan
19 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [2908]) Add object awareness to WP_Query. Props skeltoac. fixes #1700

#2 @(none)
17 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.