Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#1291 closed defect (bug) (fixed)

Logged in user cannot comment on posts by other authors

Reported by: kim's profile kim Owned by: ryan's profile ryan
Milestone: Priority: normal
Severity: major Version: 1.5.1
Component: General Keywords:
Focuses: Cc:

Description

If a user is logged in, submitting a comment to a post by another author results in a crash.

Fix attached.

Attachments (2)

bug1291_functions-post.diff (1.1 KB) - added by kim 19 years ago.
comment-user-level-check.diff (600 bytes) - added by kim 19 years ago.

Download all attachments as: .zip

Change History (5)

#1 @kim
19 years ago

  • Patch set to No

#2 @coffee2code
19 years ago

Oops.

In addition, I think the admin/author auto-approve check should be done prior to check_comment() and wp_blacklist_check(). We already know if the commenter will be unmoderated, and if so, we can circumvent those two other checks which would ultimately be disregarded for the commenter anyway.

Patch attached, bug1291_functions-post.diff, which incorporates kim's fix and my suggestion.

#3 @coffee2code
19 years ago

  • Patch changed from No to Yes

#4 @ryan
19 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.