#3811 closed defect (bug) (invalid)
wp-login.php does not allow redirecting 'read' capability (Subscriber) to Dashboard instead of Profile upon login
Reported by: | cliffpaulick | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Login & Authentication | Keywords: | |
Cc: |
Description
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?
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.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Thank you for your ticket, however this is the Meta Trac. Here, we talk about problems and fixes for the WordPress.org website itself, and the various properties surrounding it.
Tickets relating to the WordPress core code itself should be made on https://core.trac.wordpress.org. As always, search first, as there may be a ticket there relating to your issue already.