Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#1700 closed defect (bug) (fixed)

Sub-post objects are returned in every query

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

Description

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 21 years ago.
classes.php diff

Download all attachments as: .zip

Change History (3)

@skeltoac
21 years ago

classes.php diff

#1 @ryan
21 years ago

  • Resolutionfixed
  • Status newclosed

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

#2 @(none)
20 years ago

  • Milestone 2.0

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.