Make WordPress Core

Opened 11 years ago

Closed 9 years ago

Last modified 9 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:


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 11 years ago.
(updated to restore results filter placement to the end)

Download all attachments as: .zip

Change History (10)

#1 @kevinB
11 years ago

  • Component changed from Administration to General

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

11 years ago

(updated to restore results filter placement to the end)

#2 @kevinB
11 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.

#3 @rob1n
11 years ago

  • Milestone changed from 2.2 to 2.3

#4 @foolswisdom
11 years ago

  • Milestone changed from 2.3 to 2.5 (future)

#5 @rob1n
10 years ago

  • Owner rob1n deleted

#6 @Denis-de-Bernardy
9 years ago

  • Component changed from General to Template

#7 @Denis-de-Bernardy
9 years ago

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

#8 @kevinB
9 years ago

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

#9 @westi
9 years ago

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