Opened 11 years ago
Closed 11 years ago
#34159 closed defect (bug) (fixed)
Tweak the secure cookie flag logic for some cookies
| Reported by: | johnbillion | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | low | Milestone: | 4.4 |
| Component: | Security | Version: | 4.0 |
| Severity: | minor | Keywords: | has-patch 2nd-opinion |
| Cc: | Focuses: |
Description
The URLs that are used when determining whether to set the secure flag on the user settings cookies and the test cookie aren't always appropriate.
- If a site's
homeandsiteurlURLs usehttpbutFORCE_SSL_ADMINis used, then the secure flag won't be set on user settings cookies. Ref. This should useadmin_url()instead. - If a site's
homeURL useshttpbut the login form useshttpsthen the secure flag won't be set on the test cookie. Ref. This should usewp_login_url()instead.
Introduced in #28427
Related: #29641
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Just needs a sanity check.