From 8c6e54b2f70aa52086ec535316ffd3d24594002b Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 10 Jul 2023 23:21:22 +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. Built from https://develop.svn.wordpress.org/trunk@56196 git-svn-id: http://core.svn.wordpress.org/trunk@55708 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/widgets/class-wp-widget-custom-html.php | 12 ++++++++---- wp-includes/widgets/class-wp-widget-media.php | 12 ++++++++---- wp-includes/widgets/class-wp-widget-text.php | 12 ++++++++---- 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 24743aeaac..e195f52c54 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-beta3-56195'; +$wp_version = '6.3-beta3-56196'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/widgets/class-wp-widget-custom-html.php b/wp-includes/widgets/class-wp-widget-custom-html.php index 6c8e92cb73..771520e1c4 100644 --- a/wp-includes/widgets/class-wp-widget-custom-html.php +++ b/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/wp-includes/widgets/class-wp-widget-media.php b/wp-includes/widgets/class-wp-widget-media.php index 18d66e402b..ebca22ec66 100644 --- a/wp-includes/widgets/class-wp-widget-media.php +++ b/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/wp-includes/widgets/class-wp-widget-text.php b/wp-includes/widgets/class-wp-widget-text.php index fcf41acbf1..1259357ae2 100644 --- a/wp-includes/widgets/class-wp-widget-text.php +++ b/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' ) ); }