Using `esc_attr( get_block_wrapper_attributes() )`, results in `class=""wp-block-foo""`


So, phpcs is telling me I need to escape the get_block_wrapper_attributes(); function.

I thought it would be a simple as esc_attr( get_block_wrapper_attributes() );, but it would appear not to be the case as the output; class=""wp-block-foo"" is not valid markup?

Is this a bug? or am I missing something? or maybe I’ve done something wrong… I’m not sure, so I figured I’d ask.

Thanks in advance.

Beaniie 1 year 2022-09-10T14:23:00-05:00 0 Answers 0 views 0

Leave an answer