Make WordPress Core

Changeset 56196


Ignore:
Timestamp:
07/10/2023 11:19:12 PM (14 months ago)
Author:
audrasjb
Message:

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.

Location:
trunk/src/wp-includes/widgets
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-custom-html.php

    r55553 r56196  
    7070        $this->registered = true;
    7171
    72         // Note that the widgets component in the customizer will also do
    73         // the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
     72        /*
     73         * Note that the widgets component in the customizer will also do
     74         * the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
     75         */
    7476        add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) );
    7577
    76         // Note that the widgets component in the customizer will also do
    77         // the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
     78        /*
     79         * Note that the widgets component in the customizer will also do
     80         * the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
     81         */
    7882        add_action( 'admin_footer-widgets.php', array( 'WP_Widget_Custom_HTML', 'render_control_template_scripts' ) );
    7983
  • trunk/src/wp-includes/widgets/class-wp-widget-media.php

    r53302 r56196  
    108108        $this->registered = true;
    109109
    110         // Note that the widgets component in the customizer will also do
    111         // the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
     110        /*
     111         * Note that the widgets component in the customizer will also do
     112         * the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
     113         */
    112114        add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) );
    113115
     
    116118        }
    117119
    118         // Note that the widgets component in the customizer will also do
    119         // the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
     120        /*
     121         * Note that the widgets component in the customizer will also do
     122         * the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
     123         */
    120124        add_action( 'admin_footer-widgets.php', array( $this, 'render_control_template_scripts' ) );
    121125
  • trunk/src/wp-includes/widgets/class-wp-widget-text.php

    r55988 r56196  
    6161        }
    6262
    63         // Note that the widgets component in the customizer will also do
    64         // the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
     63        /*
     64         * Note that the widgets component in the customizer will also do
     65         * the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
     66         */
    6567        add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) );
    6668
    67         // Note that the widgets component in the customizer will also do
    68         // the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
     69        /*
     70         * Note that the widgets component in the customizer will also do
     71         * the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
     72         */
    6973        add_action( 'admin_footer-widgets.php', array( 'WP_Widget_Text', 'render_control_template_scripts' ) );
    7074    }
Note: See TracChangeset for help on using the changeset viewer.