[wp-trac] [WordPress Trac] #55356: Use safecss_filter_attr() instead of wp_strip_all_tags() in wp_get_layout_style()

WordPress Trac noreply at wordpress.org
Wed Mar 9 20:13:06 UTC 2022


#55356: Use safecss_filter_attr() instead of wp_strip_all_tags() in
wp_get_layout_style()
----------------------------+---------------------
 Reporter:  grapplerulrich  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  6.0
Component:  Formatting      |     Version:  5.9
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------
Changes (by SergeyBiryukov):

 * milestone:  Awaiting Review => 6.0


Old description:

> Now that [https://core.trac.wordpress.org/ticket/46197 #46197] has been
> patched, `safecss_filter_attr()` can be used instead of
> `wp_strip_all_tags()`.
>
> Introduced in [https://github.com/WordPress/gutenberg/pull/33359
> Gutenberg#33359].
>

> https://github.com/WordPress/WordPress/blob/5.9-branch/wp-includes/block-
> supports/layout.php#L57

New description:

 Now that #46197 has been patched, `safecss_filter_attr()` can be used
 instead of `wp_strip_all_tags()`.

 Introduced in [https://github.com/WordPress/gutenberg/pull/33359
 Gutenberg#33359].


 https://github.com/WordPress/WordPress/blob/5.9-branch/wp-includes/block-
 supports/layout.php#L57

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55356#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list