WordPress.org

Making WordPress.org

Opened 5 years ago

Closed 5 years ago

#725 closed defect (fixed)

Redirect loop on Make when visiting wp-admin without a user role

Reported by: iandunn Owned by: coffee2code
Milestone: Priority: low
Component: Make (Get Involved) / P2 Keywords:
Cc:

Description

If a logged-in user attempts to visit /wp-admin on some Make sites that they don’t have access to, they get stuck in a redirect loop.

e..g, requesting http://make.wordpress.org/training/wp-admin redirects to https://make.wordpress.org/training/wp-admin/edit.php?post_type=handbook and then fails.

It doesn’t affect all of the sites, though. I’m seeing it on /training, /docs, /core, and /meta, but not on /community. I didn’t test beyond that, though.

Dion pointed out that WPorg_Handbook->admin_page_access_denied() is redirecting all denied requests to the handbook post type, which is also denied, causing the loop.

Change History (1)

#1 @coffee2code
5 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 976:

Handbook plugin: remove admin redirect causing redirect loop for users with insufficient privileges. Fixes #725

Note: See TracTickets for help on using tickets.