WordPress.org

Making WordPress.org

Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#3811 closed defect (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)

#1 @Otto42
12 months ago

  • Resolution set to invalid
  • Status changed from new to closed

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.

#2 @cliffpaulick
12 months ago

Eek! Sorry. (Darn Google.) Created https://core.trac.wordpress.org/ticket/44960 instead

Note: See TracTickets for help on using tickets.