#61536 closed defect (bug) (fixed)
Add opacity as an allowed attribute to safecss_filter_attr()
| Reported by: | sunil25393 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.7 |
| Component: | Formatting | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
2 years ago
#1
- Keywords has-unit-tests added
@SergeyBiryukov commented on PR #6943:
2 years ago
#5
Thanks for the PR! Merged in r58709.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Backport of the following Gutenberg PRs
https://github.com/WordPress/gutenberg/pull/59891
Trac ticket: https://core.trac.wordpress.org/ticket/61536#ticket