Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24084 closed defect (bug) (fixed)

Fix possible PHP notices after a user is deleted

Reported by: azaozz's profile azaozz Owned by:
Milestone: 3.7 Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

get_comment_author() doesn't check if a user that has commented still exists and may throw a notice. Also can return the user_login where a user name is expected.

Same in edit-form-advanced.php in the code block that outputs "Last edited by ..." under the editor.

Attachments (1)

24084.patch (2.7 KB) - added by azaozz 11 years ago.

Download all attachments as: .zip

Change History (7)

@azaozz
11 years ago

#1 @SergeyBiryukov
11 years ago

  • Component changed from General to Administration

#2 @c3mdigital
11 years ago

  • Keywords has-patch added

#3 @azaozz
11 years ago

  • Milestone changed from Awaiting Review to 3.7

#4 @nacin
11 years ago

In 25136:

Ensure a user exists in get_comment_author().

props azaozz.
see #24084.

#5 @nacin
11 years ago

The other piece was fixed at some point.

#6 @nacin
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.