Make WordPress Core

Opened 14 years ago

Closed 13 years ago

#24084 closed defect (bug) (fixed)

Fix possible PHP notices after a user is deleted

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

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 14 years ago.

Download all attachments as: .zip

Change History (7)

@azaozz
14 years ago

#1 @SergeyBiryukov
14 years ago

  • Component General → Administration

#2 @c3mdigital
13 years ago

  • Keywords has-patch added

#3 @azaozz
13 years ago

  • Milestone Awaiting Review → 3.7

#4 @nacin
13 years ago

In 25136:

Ensure a user exists in get_comment_author().

props azaozz.
see #24084.

#5 @nacin
13 years ago

The other piece was fixed at some point.

#6 @nacin
13 years ago

  • Resolution → fixed
  • Status new → closed
Note: See TracTickets for help on using tickets.