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

Question

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.

0
Beaniie 2 weeks 2022-09-10T14:23:00-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse