From d7ddda1bbf2a6e5aa7b220a097063fe8a4bb4183 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 10 Jul 2023 23:19:12 +0000 Subject: [PATCH] Docs: Replace multiple single line comments with multi-line comments. This changeset updates various comments as per WordPress PHP Inline Documentation Standards. See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments. Follow-up to [56174], [56175], [56176], [56177], [56178], [56179], [56180], [56191], [56192], [56193], [56194], [56195]. Props costdev, audrasjb. See #58459. git-svn-id: https://develop.svn.wordpress.org/trunk@56196 602fd350-edb4-49c9-b593-d223f7449a82 --- .../widgets/class-wp-widget-custom-html.php | 12 ++++++++---- src/wp-includes/widgets/class-wp-widget-media.php | 12 ++++++++---- src/wp-includes/widgets/class-wp-widget-text.php | 12 ++++++++---- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/src/wp-includes/widgets/class-wp-widget-custom-html.php b/src/wp-includes/widgets/class-wp-widget-custom-html.php index 6c8e92cb73..771520e1c4 100644 --- a/src/wp-includes/widgets/class-wp-widget-custom-html.php +++ b/src/wp-includes/widgets/class-wp-widget-custom-html.php @@ -69,12 +69,16 @@ class WP_Widget_Custom_HTML extends WP_Widget { } $this->registered = true; - // Note that the widgets component in the customizer will also do - // the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts(). + /* + * Note that the widgets component in the customizer will also do + * the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts(). + */ add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) ); - // Note that the widgets component in the customizer will also do - // the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts(). + /* + * Note that the widgets component in the customizer will also do + * the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts(). + */ add_action( 'admin_footer-widgets.php', array( 'WP_Widget_Custom_HTML', 'render_control_template_scripts' ) ); // Note this action is used to ensure the help text is added to the end. diff --git a/src/wp-includes/widgets/class-wp-widget-media.php b/src/wp-includes/widgets/class-wp-widget-media.php index 18d66e402b..ebca22ec66 100644 --- a/src/wp-includes/widgets/class-wp-widget-media.php +++ b/src/wp-includes/widgets/class-wp-widget-media.php @@ -107,16 +107,20 @@ abstract class WP_Widget_Media extends WP_Widget { } $this->registered = true; - // Note that the widgets component in the customizer will also do - // the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts(). + /* + * Note that the widgets component in the customizer will also do + * the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts(). + */ add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) ); if ( $this->is_preview() ) { add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) ); } - // Note that the widgets component in the customizer will also do - // the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts(). + /* + * Note that the widgets component in the customizer will also do + * the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts(). + */ add_action( 'admin_footer-widgets.php', array( $this, 'render_control_template_scripts' ) ); add_filter( 'display_media_states', array( $this, 'display_media_state' ), 10, 2 ); diff --git a/src/wp-includes/widgets/class-wp-widget-text.php b/src/wp-includes/widgets/class-wp-widget-text.php index fcf41acbf1..1259357ae2 100644 --- a/src/wp-includes/widgets/class-wp-widget-text.php +++ b/src/wp-includes/widgets/class-wp-widget-text.php @@ -60,12 +60,16 @@ class WP_Widget_Text extends WP_Widget { add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) ); } - // Note that the widgets component in the customizer will also do - // the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts(). + /* + * Note that the widgets component in the customizer will also do + * the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts(). + */ add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) ); - // Note that the widgets component in the customizer will also do - // the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts(). + /* + * Note that the widgets component in the customizer will also do + * the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts(). + */ add_action( 'admin_footer-widgets.php', array( 'WP_Widget_Text', 'render_control_template_scripts' ) ); }