[wp-trac] [WordPress Trac] #52721: No way to filter value of $credentials['remember'] in wp_signon

WordPress Trac noreply at wordpress.org
Fri Mar 5 11:44:54 UTC 2021


#52721: No way to filter value of $credentials['remember'] in wp_signon
------------------------------------+-----------------------------
 Reporter:  mirkolofio              |      Owner:  (none)
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  5.6.2
 Severity:  normal                  |   Keywords:  needs-patch
  Focuses:                          |
------------------------------------+-----------------------------
 There are famous plugins out there using wp_signon and providing
 $credentials, so essentially $_POST values are completely ignored.
 Meanwhile, $credentials lacks of 'remember' value in these plugins, so for
 the wp_signon function means 'remember = false'.

 If you want to force that remember = 1, there's only the wp_authenticate
 filter available which:
 1. is maybe deprecated?
 2. does not pass the remember value

 So, basically, there is no way to filter the remember value, when the
 wp_signon function is not properly called by someone.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52721>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list