WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 5 years ago

Last modified 4 years ago

#4096 closed enhancement (invalid)

get_categories: add query hooks, wpcache argument hooks

Reported by: kevinB Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Template Keywords: needs-patch get_categories hook
Focuses: Cc:

Description

To support plugins which want to do query filtering and/or use alternate wp_cache id and group (Note that the existing results filter already lets plugins have their way with results set. This just lets them do it more efficiently).

  • Add wpcache_id and wpcache_group filters
  • Add join, where, request filters
  • apply existing results filter prior to cache update

Attachments (1)

get_categories-hooks.diff (1.5 KB) - added by kevinB 7 years ago.
(updated to restore results filter placement to the end)

Download all attachments as: .zip

Change History (10)

comment:1 kevinB7 years ago

  • Component changed from Administration to General

also posted tickets for get_pages(#4094) and get_bookmarks(#4095)

kevinB7 years ago

(updated to restore results filter placement to the end)

comment:2 kevinB7 years ago

I've come to some clearer thinking on the results filter placement and reverted my previous proposal to move it.

If the cache retrieval is run through the same filter, there is no need to filter prior to cache storage. It seems safer to leave the actual cache storage unfiltered so it's not invalid after a filtering plugin is removed.

comment:3 rob1n7 years ago

  • Milestone changed from 2.2 to 2.3

comment:4 foolswisdom7 years ago

  • Milestone changed from 2.3 to 2.5 (future)

comment:5 rob1n6 years ago

  • Owner rob1n deleted

comment:6 Denis-de-Bernardy5 years ago

  • Component changed from General to Template

comment:7 Denis-de-Bernardy5 years ago

  • Keywords needs-patch added
  • Milestone changed from 2.9 to Future Release

comment:8 kevinB5 years ago

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

comment:9 westi4 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.