Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r47055 r47122  
    107107                $this->registered = true;
    108108
    109                 // Note that the widgets component in the customizer will also do the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
     109                // Note that the widgets component in the customizer will also do
     110                // the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
    110111                add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) );
    111112
    … …  
    114115                }
    115116
    116                 // Note that the widgets component in the customizer will also do the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
     117                // Note that the widgets component in the customizer will also do
     118                // the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
    117119                add_action( 'admin_footer-widgets.php', array( $this, 'render_control_template_scripts' ) );
    118120
    … …  
    275277                        $value = $new_instance[ $field ];
    276278
    277                         // Workaround for rest_validate_value_from_schema() due to the fact that rest_is_boolean( '' ) === false, while rest_is_boolean( '1' ) is true.
     279                        /*
     280                         * Workaround for rest_validate_value_from_schema() due to the fact that
     281                         * rest_is_boolean( '' ) === false, while rest_is_boolean( '1' ) is true.
     282                         */
    278283                        if ( 'boolean' === $field_schema['type'] && '' === $value ) {
    279284                                $value = false;
Note: See TracChangeset for help on using the changeset viewer.