Make WordPress Core

Opened 16 years ago

Closed 15 years ago

#9599 closed enhancement (wontfix)

Allow pre tags in comments

Reported by: nbachiyski's profile nbachiyski Owned by:
Milestone: Priority: lowest
Severity: minor Version: 2.8
Component: Comments Keywords:
Focuses: Cc:

Description

Sometimes I want to add a code snippet in comments, but the pre tag isn't allowed there. It will be pretty harmless, since we won't allow any attributes.

Attachments (1)

pre-in-comments.diff (358 bytes) - added by nbachiyski 16 years ago.

Download all attachments as: .zip

Change History (9)

#1 @Denis-de-Bernardy
16 years ago

  • Keywords tested added; kses removed
  • Milestone changed from Future Release to 2.8

#2 @JohnLamansky
16 years ago

The pre tag could let a commenter "break out" of the page's layout though.

#3 @Denis-de-Bernardy
16 years ago

  • Keywords needs-patch added; has-patch tested removed

correct. and it would only really make sense if its contents is htmlspecialchar'd afterwards.

#4 @Denis-de-Bernardy
16 years ago

  • Keywords 2nd-opinion added

#5 @janeforshort
16 years ago

  • Milestone changed from 2.8 to Future Release

Punting to be evaluated in next development cycle due to time constraints.

#6 @Denis-de-Bernardy
16 years ago

  • Keywords 2nd-opinion removed

#7 @Denis-de-Bernardy
16 years ago

  • Keywords close added

suggesting we close this, too.

#8 @johnbillion
15 years ago

  • Keywords needs-patch close removed
  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

You should use the <code> tag for code snippets. Most themes style this with a monospace font and most code block styling plugins work off this tag too.

Don't see any other need for <pre> tags in comments.

Note: See TracTickets for help on using tickets.