[wp-trac] [WordPress Trac] #44960: wp-login.php does not allow redirecting 'read' capability (Subscriber) to Dashboard instead of Profile upon login
WordPress Trac
noreply at wordpress.org
Tue Sep 18 15:34:01 UTC 2018
#44960: wp-login.php does not allow redirecting 'read' capability (Subscriber) to
Dashboard instead of Profile upon login
------------------------------------+-----------------------------
Reporter: cliffpaulick | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------------+-----------------------------
Re: https://github.com/WordPress/WordPress/blob/4.9.8/wp-login.php#L965
I understand checking if $redirect_to is empty, but why specifically
intercept users without 'edit_posts' capability that do have 'read'
capability?
Here's some code that I am using to override this:
https://gist.github.com/cliffordp/35d74c3bceec9fbd10547b5d1ba988e5
I'm hoping this snippet will not be needed in the future.
Thank you.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44960>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list