WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2760 closed defect (bug) (fixed)

Comment Editing Generates AYS

Reported by: markjaquith Owned by: markjaquith
Milestone: Priority: high
Severity: normal Version: 2.0.2
Component: Administration Keywords: has-patch commit
Focuses: Cc:

Description (last modified by markjaquith)

Editing a comment generates an "Are you sure?" screen.

Version 2.0.3 (option not yet available in Trac)

This wouldn't be so bad if the AYS dialog didn't add slashes to any quote chars in the comment. #2761

Attachments (3)

nonce-comment-editing.diff (342 bytes) - added by markjaquith 8 years ago.
Patch for 2.0.3
2760-2.0.diff (1.2 KB) - added by mdawaffe 8 years ago.
underscores for branches/2.0
2760-trunk.diff (1.2 KB) - added by mdawaffe 8 years ago.
underscores for trunk

Download all attachments as: .zip

Change History (8)

comment:1 markjaquith8 years ago

  • Description modified (diff)

markjaquith8 years ago

Patch for 2.0.3

comment:2 markjaquith8 years ago

  • Keywords has-patch commit added
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

Patch fixes it. Problem should be obvious:

wp_nonce_field('update-comment' . $comment->comment_ID)

vs

check_admin_referer('update-comment');

thus, the nonce is invalid.

mdawaffe8 years ago

underscores for branches/2.0

mdawaffe8 years ago

underscores for trunk

comment:3 mdawaffe8 years ago

2760-2.0.diff

2760-trunk.diff

  1. Follow verb-noun_which convention for nonces. http://trac.wordpress.org/ticket/2734#change_6

comment:4 ryan8 years ago

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

(In [3826]) Comment nonce fixes from Mark Jaquith and mdawaffe. fixes #2760

comment:5 ryan8 years ago

  • Resolution set to fixed

(In [3827]) Comment nonce fixes from Mark Jaquith and mdawaffe. fixes #2760

Note: See TracTickets for help on using tickets.