Make WordPress Core

Opened 9 years ago

Closed 6 years ago

#15033 closed enhancement (invalid)

ajax find_posts should use get_posts()

Reported by: 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 9 years ago.
15033-B.diff (1.4 KB) - added by kevinB 8 years ago.
Make find_posts query use get_posts() -- without suppressing filters
15033.2.diff (1.5 KB) - added by SergeyBiryukov 8 years ago.

Download all attachments as: .zip

Change History (13)

#1 @scribu
9 years ago

  • Description modified (diff)

9 years ago

#2 @scribu
9 years ago

  • Keywords has-patch added

#3 @scribu
9 years ago

Prerequisite: #15033

#4 @scribu
9 years ago

#14777 I mean.

#5 @scribu
9 years ago

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

#6 @scribu
8 years ago

  • Keywords 3.2-early removed

8 years ago

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

#7 @aesqe
8 years ago

  • Cc aesqe@… added

#8 @scribu
8 years ago

  • Keywords needs-refresh added

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

#9 @SergeyBiryukov
8 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
6 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.