Opened 5 years ago
Closed 3 months ago
#51707 closed enhancement (fixed)
Add white-space as an allowed kses CSS attribute.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.9 | Priority: | normal |
| Severity: | normal | Version: | 5.3.1 |
| Component: | Formatting | Keywords: | has-patch has-unit-tests commit |
| Focuses: | Cc: |
Description
white-space has wide browser support, and users would benefit from not having it stripped while adding to posts.
/wp-includes/kses.php:2177
Attachments (2)
Change History (11)
This ticket was mentioned in PR #9197 on WordPress/wordpress-develop by @sukhendu2002.
4 months ago
#4
- Keywords has-unit-tests added; needs-refresh removed
Trac ticket: https://core.trac.wordpress.org/ticket/51707
@mukesh27 commented on PR #9197:
4 months ago
#6
Thanks @Sukhendu2002 picking and refreshing the patch!
#7
@
3 months ago
This looks good to move forward.
Tested in playground environment by adding an inline style of white-space: nowrap|pre|etc.
On save, the style attribute persists as expected.
Note: See
TracTickets for help on using
tickets.
Patch 51707.diff looks fine for me and
white-spacesupport in all latest browser as per https://developer.mozilla.org/en-US/docs/Web/CSS/white-space article.