[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 05:05:59 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):

 > Wow. I would have sworn the test filters had a URL as an argument :)
 Since they don't, your suggestion works fine for me.
 >
 > PS: Perhaps.....

 $url is ''passed'' to the functions, but they don't actually use it. There
 is a few tickets where using $url within the function might be needed (ie.
 to get the scheme), but none of them use it, that's why you're confused :)
 I added it whilst changing that section of code, and once it was in, I've
 seen no reason to change it.. It's flexibility if we need it in the
 future, as it is now, it does no harm

 > that seems like over optimization to me.
 Exactly why it's not already done

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


More information about the wp-trac mailing list