Ticket #1240 (closed defect (bug): fixed)

Opened 5 years ago

Last modified 3 years ago

wp-login.php redirects level 0 users to /wp-admin/profile.php

Reported by: error Owned by: masquerade
Priority: normal Milestone:
Component: Administration Version: 1.5.2
Severity: minor Keywords: login bg|has-patch bg|commit bg|squashed
Cc:

Description

When logging in with wp_login.php it is possible to pass a redirect_to parameter to control the page the user gets after login. However, this does not work for level 0 users; they are always redirected to /wp-admin/profile.php regardless of the redirect_to parameter.

Many users use level 0 users to implement "Users must register to leave comments," as they may not want registered users to be able to write drafts (level 1 and above).

Attachments

wp-login.php.diff Download (1.2 KB) - added by error 5 years ago.
wp-login-redirect.diff Download (0.6 KB) - added by masquerade 4 years ago.
New patch for 1.6

Change History

error5 years ago
  • Patch set to No
  • resolution changed from 10 to 20
  • Patch changed from No to Yes

This patch allows redirect_to parameter to override the default of going to /wp-admin/profile.php for level 0 users.

It also fixes issue 1239, as both issues were related to the same general "login/logout form on the public blog that shoves you back to the page you were viewing after login/logout" idea by io_error.

error5 years ago

error4 years ago
  • keywords login bg|has-patch bg|commit added
  • version changed from 1.5.1 to 1.5.2
  • milestone set to 1.6

hm, this isn't exactly fixed...something must have gone wrong somewhere.

  • owner changed from anonymous to markjaquith
  • status changed from new to assigned
  • status changed from assigned to closed
  • status changed from closed to reopened
  • resolution fixed deleted
  • keywords bg|squashed added
  • owner changed from markjaquith to masquerade
  • status changed from reopened to new

New patch for 1.6 added

New patch for 1.6

matt4 years ago
  • status changed from new to closed
  • resolution set to fixed

(In [2985]) Redirect to profile unless redirect, fixes #1240

  • milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.