Opened 8 years ago
#44960 new defect (bug)
wp-login.php does not allow redirecting 'read' capability (Subscriber) to Dashboard instead of Profile upon login
| Reported by: | cliffpaulick | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Login and Registration | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)