Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#24752 closed defect (bug) (fixed)

Undefined index notice when submitting a comment with JS disabled

Reported by: sergeybiryukov's profile SergeyBiryukov Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 3.7 Priority: normal
Severity: normal Version: 3.3.3
Component: Warnings/Notices Keywords: has-patch commit
Focuses: Cc:


If a logged-in user with unfiltered_html tries to submit a comment with JavaScript disabled, a notice appears:

Notice: Undefined index: _wp_unfiltered_html_comment in wp-comments-post.php on line 64

Introduced in [20974].

Attachments (2)

24752.patch (868 bytes) - added by SergeyBiryukov 11 years ago.
24752.diff (918 bytes) - added by duck_ 11 years ago.

Download all attachments as: .zip

Change History (6)

#1 @SergeyBiryukov
11 years ago

  • Milestone changed from Awaiting Review to 3.7

#2 @SergeyBiryukov
11 years ago

  • Keywords commit added

#3 @SergeyBiryukov
11 years ago

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

In 25121:

Avoid an undefined index notice when submitting a comment with JavaScript disabled. fixes #24752.

11 years ago

#4 @duck_
11 years ago

In 25137:

Initialize kses filters if _wp_unfiltered_html_comment nonce isn't set.

See #24752.

Note: See TracTickets for help on using tickets.