Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 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-text.php

    r47055 r47122  
    6262        }
    6363
    64         // Note that the widgets component in the customizer will also do the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
     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().
    6566        add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) );
    6667
    67         // Note that the widgets component in the customizer will also do the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
     68        // Note that the widgets component in the customizer will also do
     69        // the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
    6870        add_action( 'admin_footer-widgets.php', array( 'WP_Widget_Text', 'render_control_template_scripts' ) );
    6971    }
     
    122124        $doc = new DOMDocument();
    123125
    124         // Suppress warnings generated by loadHTML
     126        // Suppress warnings generated by loadHTML.
    125127        $errors = libxml_use_internal_errors( true );
    126128        // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
     
    374376                'text'   => '',
    375377                'filter' => false, // For back-compat.
    376                 'visual' => null, // Must be explicitly defined.
     378                'visual' => null,  // Must be explicitly defined.
    377379            )
    378380        );
Note: See TracChangeset for help on using the changeset viewer.