WordPress.org

Make WordPress Core

Opened 4 years ago

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

Download all attachments as: .zip

Change History (13)

comment:1 scribu4 years ago

  • Description modified (diff)

scribu4 years ago

comment:2 scribu4 years ago

  • Keywords has-patch added

comment:3 scribu4 years ago

Prerequisite: #15033

comment:4 scribu4 years ago

#14777 I mean.

comment:5 scribu3 years ago

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

comment:6 scribu3 years ago

  • Keywords 3.2-early removed

kevinB3 years ago

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

comment:7 aesqe2 years ago

  • Cc aesqe@… added

comment:8 scribu2 years ago

  • Keywords needs-refresh added

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

SergeyBiryukov2 years ago

comment:9 SergeyBiryukov2 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.

comment:10 wonderboymusic8 months 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.