Make WordPress Core

Opened 14 years ago

Closed 11 years ago

#15033 closed enhancement (invalid)

ajax find_posts should use get_posts()

Reported by: scribu's profile scribu Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Query Keywords: has-patch
Focuses: Cc:

Description (last modified by scribu)

Currently, the find_posts action uses a direct SQL query instead of using the available API.

Attachments (3)

15033.diff (1.4 KB) - added by scribu 14 years ago.
15033-B.diff (1.4 KB) - added by kevinB 13 years ago.
Make find_posts query use get_posts() -- without suppressing filters
15033.2.diff (1.5 KB) - added by SergeyBiryukov 13 years ago.

Download all attachments as: .zip

Change History (13)

#1 @scribu
14 years ago

  • Description modified (diff)

@scribu
14 years ago

#2 @scribu
14 years ago

  • Keywords has-patch added

#3 @scribu
14 years ago

Prerequisite: #15033

#4 @scribu
14 years ago

#14777 I mean.

#5 @scribu
14 years ago

  • Keywords 3.2-early added
  • Milestone changed from 3.1 to Future Release

#6 @scribu
14 years ago

  • Keywords 3.2-early removed

@kevinB
13 years ago

Make find_posts query use get_posts() -- without suppressing filters

#7 @aesqe
13 years ago

  • Cc aesqe@… added

#8 @scribu
13 years ago

  • Keywords needs-refresh added

The admin-ajax.php file has recently been revamped.

#9 @SergeyBiryukov
13 years ago

  • Keywords needs-refresh removed

Currently there's no way to request only certain fields (ID, post_title, post_status, post_date). #19866 would make it possible.

#10 @wonderboymusic
11 years ago

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

The code has been overhauled since this ticket and its patches were a thing. Closing this.

Note: See TracTickets for help on using tickets.