Make WordPress Core

Opened 20 years ago

Closed 19 years ago

Last modified 18 years ago

#1240 closed defect (bug) (fixed)

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

Reported by: error's profile error Owned by: masquerade's profile masquerade
Milestone: Priority: normal
Severity: minor Version: 1.5.2
Component: Administration Keywords: login bg|has-patch bg|commit bg|squashed
Focuses: 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 (2)

wp-login.php.diff (1.2 KB) - added by error 19 years ago.
wp-login-redirect.diff (601 bytes) - added by masquerade 19 years ago.
New patch for 1.6

Download all attachments as: .zip

Change History (11)

#1 @error
20 years ago

  • Patch set to No

#2 @MC_incubus
20 years ago

  • Patch changed from No to Yes
  • Resolution changed from 10 to 20

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.

@error
19 years ago

#3 @error
19 years ago

  • Keywords login bg|has-patch bg|commit added
  • Milestone set to 1.6
  • Version changed from 1.5.1 to 1.5.2

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

#4 @markjaquith
19 years ago

  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

#5 @markjaquith
19 years ago

  • Status changed from assigned to closed

#6 @markjaquith
19 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

#7 @masquerade
19 years ago

  • Keywords bg|squashed added
  • Owner changed from markjaquith to masquerade
  • Status changed from reopened to new

New patch for 1.6 added

@masquerade
19 years ago

New patch for 1.6

#8 @matt
19 years ago

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

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

#9 @(none)
18 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.