WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#24752 closed defect (bug) (fixed)

Undefined index notice when submitting a comment with JS disabled

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

Description

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 2 years ago.
24752.diff (918 bytes) - added by duck_ 2 years ago.

Download all attachments as: .zip

Change History (6)

@SergeyBiryukov2 years ago

comment:1 @SergeyBiryukov2 years ago

  • Milestone changed from Awaiting Review to 3.7

comment:2 @SergeyBiryukov2 years ago

  • Keywords commit added

comment:3 @SergeyBiryukov2 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.

@duck_2 years ago

comment:4 @duck_2 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.