[wp-trac] [WordPress Trac] #17251: Determine if any WP_HTTP transport can be used before making the request

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 28 02:10:10 UTC 2011


#17251: Determine if any WP_HTTP transport can be used before making the request
-------------------------+-----------------------
 Reporter:  mdawaffe     |       Owner:  dd32
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  3.2
Component:  HTTP         |     Version:  3.2
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------

Comment (by dd32):

 My initial thinking was that the supports argument would build a "fake"
 $args to simulate what it was testing, ie. request ssl, it runs ::test()
 with ssl = true , ssl signing = false, etc. If we take that method, it
 could just optionally override it with the 2nd arg (or really, merge it)
 when specified..

 Also, It's only the $args passed to the test filters, the test filters are
 mainly there to disable the transport, not to do crazy things with it
 (that being said, I'm sure there are some out there)

 The ::test() classes are reasonably simple beasts, running them multiple
 times is going to be a heck of a lot faster than most http requests. That
 might be a worthwhile 2nd ticket, caching of the ::test results for a
 certain $args+$url combination.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17251#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list