[wp-trac] [WordPress Trac] #37747: Call to undefined method Requests_Response::is_redirect()

WordPress Trac noreply at wordpress.org
Fri Sep 30 03:27:10 UTC 2016


#37747: Call to undefined method Requests_Response::is_redirect()
--------------------------+----------------------
 Reporter:  lordspace     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  HTTP API      |     Version:  4.6
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------

Comment (by dd32):

 Replying to [comment:6 noclique]:
 > Hey @Clorith
 >
 > I am using Requests in the plugin I'm developing. I like your idea of
 deferring to the version used within WordPress now that it's included
 within 4.6. However I'll need the plugin to work for versions before 4.6
 as-well. I suppose I could place a conditional somewhere in the code and
 only load the version of Requests that comes with my plugin if it's not
 found within WordPress.

 If it's a plugin you're going to distribute, you should really use the
 `wp_remote_*()` functions instead of `Requests` directly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37747#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list