Opened 17 years ago
Closed 17 years ago
#9068 closed defect (bug) (fixed)
HTTP API Cookies trigger E_NOTICE
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.8 | Priority: | low |
| Severity: | minor | Version: | 2.8 |
| Component: | HTTP API | Keywords: | |
| Focuses: | Cc: |
Description
When creating a WP_Http_Cookie using a source array, if you don't set all elements then it generates E_NOTICE errors.
Patch attached checks values before trying to use them.
Attachments (3)
Change History (12)
#4
@
17 years ago
Update for one additional place in the HTTP API that causes notice in new cookies functionality.
#6
follow-up:
↓ 8
@
17 years ago
Is there a reason that we couldn't use empty() in [10633] rather than isset() and count()?
#7
@
17 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Also should probably cast cookies to array. Patch attached.
Note: See
TracTickets for help on using
tickets.
(In [10524]) Fix PHP notices in HTTP API Cookies, props beaulebens, fixes #9068