WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#6911 closed defect (bug) (fixed)

User profile edit page takes "admin color scheme" option from incorrect profile

Reported by: regulatethis Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: Template Keywords: has-patch
Focuses: Cc:

Description

If as an admin you attempt to edit a user profile, the "admin color scheme" option will be populated from the current user's profile, when it should be populated with the option value from the profile of the user being edited.

This is happening in the trunk (r7882)

Attachments (1)

6911.diff (481 bytes) - added by regulatethis 6 years ago.

Download all attachments as: .zip

Change History (7)

regulatethis6 years ago

comment:1 regulatethis6 years ago

Attached a patch to fix...

To reproduce this:

  1. As admin create a new user account
  2. Default admin colour scheme for new account is "fresh"
  3. As admin, change YOUR colour scheme to "classic"
  4. As admin, edit the new user's profile
  5. Notice that the currently selected option incorrectly displays as "classic"

comment:2 regulatethis6 years ago

  • Keywords has-patch added
  • Milestone changed from 2.7 to 2.5.2

comment:3 ryan6 years ago

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

(In [7898]) Get color option for user being edited, not current user. Props regulatethis. fixes #6911 for trunk

comment:4 ryan6 years ago

(In [7899]) Get color option for user being edited, not current user. Props regulatethis. fixes #6911 for 2.5

comment:5 ryan6 years ago

  • Milestone changed from 2.5.2 to 2.9

Milestone 2.5.2 deleted

comment:6 westi6 years ago

  • Milestone changed from 2.9 to 2.6
Note: See TracTickets for help on using tickets.