Opened 3 years ago
Last modified 3 years ago
#12657 new defect (bug)
wp_signon() adds one filter per call
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | General | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
If wp_signon() is called multiple times, the filter will be added multiple times. Next to this a lot of the function seems to be just typed in in the wish that it does work instead of doing things properly. See quote: "ugly hack to pass this to wp_authenticate_cookie" or leftover TODO markings and the like.
Should be put in order prior to next release.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Maybe some code example from that function (too much paranthesis and instructions):
( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') )
(taken from an if clause therein)