[wp-trac] [WordPress Trac] #10413: Allow plugins to short -circuit WP_Http::request()

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 15 03:30:36 UTC 2009


#10413: Allow plugins to short -circuit WP_Http::request()
-------------------------+--------------------------------------------------
 Reporter:  johnbillion  |       Owner:  dd32      
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  HTTP         |     Version:  2.8.1     
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------
 There is no way for plugins to add caching functionality to any of the
 HTTP functions (such as `wp_remote_get()`) in WordPress.

 An easy way to add this is to provide a short-circuit option just like
 that found in `get_option()` where a plugin can hook into
 `pre_option_{$option_name}` and return a value for that option.

 A simple filter which passes the arguments array and the URL will do
 nicely.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10413>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list