Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (4 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/class-wp-widget.php

    r46739 r47122  
    400400        $all_instances = $this->get_settings();
    401401
    402         // We need to update the data
     402        // We need to update the data.
    403403        if ( $this->updated ) {
    404404            return;
     
    406406
    407407        if ( isset( $_POST['delete_widget'] ) && $_POST['delete_widget'] ) {
    408             // Delete the settings for this instance of the widget
     408            // Delete the settings for this instance of the widget.
    409409            if ( isset( $_POST['the-widget-id'] ) ) {
    410410                $del_id = $_POST['the-widget-id'];
     
    465465                }
    466466
    467                 break; // run only once
     467                break; // Run only once.
    468468            }
    469469        }
     
    495495
    496496        if ( -1 == $widget_args['number'] ) {
    497             // We echo out a form where 'number' can be set later
     497            // We echo out a form where 'number' can be set later.
    498498            $this->_set( '__i__' );
    499499            $instance = array();
Note: See TracChangeset for help on using the changeset viewer.