WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#21999 closed enhancement (fixed)

Passing cookie arguments to the HTTP API should be easier

Reported by: Viper007Bond Owned by: dd32
Milestone: 3.7 Priority: normal
Severity: normal Version: 3.4.2
Component: HTTP API Keywords:
Focuses: Cc:

Description

If you want to set cookies during a remote HTTP request in WordPress, it's currently a rather pain in the ass to do.

Rather than having to deal with WP_HTTP_Cookie, it'd be nice if you could just pass a name => value array and have the rest taken care for you behind the scenes.

Change History (2)

#1 @dd32
7 years ago

  • Keywords needs-patch removed
  • Milestone changed from Awaiting Review to 3.7

#2 @dd32
7 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 25016:

WP_HTTP: Allow name => value pairs to be passed in to the 'cookie' parameter, simplifies plugin code when needing to specify basic cookies. Fixes #21999

Note: See TracTickets for help on using tickets.