[wp-trac] [WordPress Trac] #10416: Create filter and or constant for forcing use of a specific http transport

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


#10416: Create filter and or constant for forcing use of a specific http transport
-------------------------+--------------------------------------------------
 Reporter:  sivel        |       Owner:  dd32 
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:  2.9  
Component:  HTTP         |     Version:  2.8.1
 Severity:  normal       |    Keywords:       
-------------------------+--------------------------------------------------

Comment(by sivel):

 No, for several reasons.

  1. That plugin does the same thing I mentioned, disabling all transports
 except for the one you want to use by means of filtering.
  1. Why would I want to use a plugin when a single
 define('WP_HTTP_TRANSPORT', 'fsockopen'); could be used, not to mention I
 am currently doing the same that that plugin does.
  1. In my current specific case I am checking to see if safe_mode and
 open_basedir are set and if they are I want to force use of fsockopen.
 However, to do this you have to run 4 filters to disable all of the other
 transports rather than being able to do one define or one filter to force
 use of a specific transport.
  1. Lets say for some reason the test for a specific transport returns
 false that it cannot be used but I want to force it to use that transport
 anyway.  There is currently no way around this.

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


More information about the wp-trac mailing list