Make WordPress Core

Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#17594 closed enhancement (wontfix)

Add pre_get_home_url hook for plugins

Reported by: technosailor's profile technosailor Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.2
Component: General Keywords: has-patch reporter-feedback
Focuses: Cc:

Description

We need to allow plugins to "do stuff" in pre_get_home_url. In profiling today, we wrote some code that, if we have this hook, would allow a reduction of computations from x (in our case, 4000) down to 1 using a pseudo-cache technique.

While that code isn't core-worthy, having a hook to allow plugin modification would incredibly enhance the ability to make WP more efficient on scale.

Attachments (1)

17594.diff (487 bytes) - added by technosailor 14 years ago.
adds pre_get_home_url action.

Download all attachments as: .zip

Change History (5)

@technosailor
14 years ago

adds pre_get_home_url action.

#1 @nacin
14 years ago

Can we hear more about the use case?

If we were to do this, I'd think we'd do it for all _url() functions.

#2 @SergeyBiryukov
13 years ago

  • Keywords reporter-feedback added

#3 @iseulde
11 years ago

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

No reporter feedback in over two years.

#4 @ocean90
11 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.