#61536 closed defect (bug) (fixed)
Add opacity as an allowed attribute to safecss_filter_attr()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Formatting | Keywords: | has-patch |
Focuses: | Cc: |
Description
Updated the overlay control to accept any value from 1 to 100 rather than multiples of 10. To accomplish this, we introduced an inline opacity style to block. However, because the safecss_filter_attr() method does not allow this property, it will be erased when inline styles are output using the get_block_wrapper_attributes() function, for example.
This ticket is for tracking the PHP backport for the following Gutenberg PR: https://github.com/WordPress/gutenberg/pull/59891
Change History (5)
This ticket was mentioned in PR #6943 on WordPress/wordpress-develop by @sunil25393.
10 months ago
#1
- Keywords has-unit-tests added
#3
@
10 months ago
- Milestone changed from Awaiting Review to 6.7
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
@SergeyBiryukov commented on PR #6943:
10 months ago
#5
Thanks for the PR! Merged in r58709.
Note: See
TracTickets for help on using
tickets.
Backport of the following Gutenberg PRs
https://github.com/WordPress/gutenberg/pull/59891
Trac ticket: https://core.trac.wordpress.org/ticket/61536#ticket