[wp-trac] [WordPress Trac] #61536: Add opacity as an allowed attribute to safecss_filter_attr()

WordPress Trac noreply at wordpress.org
Sat Jun 29 05:41:01 UTC 2024


#61536: Add opacity as an allowed attribute to safecss_filter_attr()
--------------------------+-----------------------------
 Reporter:  sunil25393    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61536>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list