Coding Standards: Use the correct formatting for multi-line comments.

Follow up to [51414].
Built from https://develop.svn.wordpress.org/trunk@51423


git-svn-id: http://core.svn.wordpress.org/trunk@51034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj
2021-07-13 18:02:57 +00:00
parent e270f4f0f3
commit 46f0cfe3ca
3 changed files with 13 additions and 4 deletions

View File

@@ -1420,9 +1420,11 @@ final class WP_Customize_Widgets {
$widget_object = $wp_widget_factory->get_widget_object( $id_base );
if ( ! empty( $widget_object->widget_options['show_instance_in_rest'] ) ) {
if ( 'block' === $id_base && ! current_user_can( 'unfiltered_html' ) ) {
// The content of the 'block' widget is not filtered on the
// fly while editing. Filter the content here to prevent
// vulnerabilities.
/*
* The content of the 'block' widget is not filtered on the
* fly while editing. Filter the content here to prevent
* vulnerabilities.
*/
$value['raw_instance']['content'] = wp_kses_post( $value['raw_instance']['content'] );
}