Make WordPress Core

Changeset 48408


Ignore:
Timestamp:
07/08/2020 01:13:50 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Miscellaneous DocBlock corrections.

See #49572.

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-automatic-updater.php

    r48397 r48408  
    945945                $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() );
    946946
    947                 // When only failures have occurred, an email should only be sent if there are unique failures.
    948                 // A failure is considered unique if an email has not been sent for an update attempt failure
    949                 // to a plugin or theme with the same new_version.
     947                /*
     948                 * When only failures have occurred, an email should only be sent if there are unique failures.
     949                 * A failure is considered unique if an email has not been sent for an update attempt failure
     950                 * to a plugin or theme with the same new_version.
     951                 */
    950952                if ( 'fail' === $type ) {
    951953                        foreach ( $failed_updates as $update_type => $failures ) {
    … …  
    10441046
    10451047                                foreach ( $failed_updates['plugin'] as $item ) {
    1046                                         $body[]                                     = "- {$item->name}";
     1048                                        $body[] = "- {$item->name}";
     1049
    10471050                                        $past_failure_emails[ $item->item->plugin ] = $item->item->new_version;
    10481051                                }
     1052
    10491053                                $body[] = "\n";
    10501054                        }
    … …  
    10551059
    10561060                                foreach ( $failed_updates['theme'] as $item ) {
    1057                                         $body[]                                    = "- {$item->name}";
     1061                                        $body[] = "- {$item->name}";
     1062
    10581063                                        $past_failure_emails[ $item->item->theme ] = $item->item->new_version;
    10591064                                }
     1065
    10601066                                $body[] = "\n";
    10611067                        }
    … …  
    10721078                                foreach ( $successful_updates['plugin'] as $item ) {
    10731079                                        $body[] = "- {$item->name}";
     1080
    10741081                                        unset( $past_failure_emails[ $item->item->plugin ] );
    10751082                                }
     1083
    10761084                                $body[] = "\n";
    10771085                        }
    … …  
    10801088                        if ( ! empty( $successful_updates['theme'] ) ) {
    10811089                                $body[] = __( 'These themes are now up to date:' );
    1082                                 // List successful updates.
     1090
    10831091                                foreach ( $successful_updates['theme'] as $item ) {
    10841092                                        $body[] = "- {$item->name}";
     1093
    10851094                                        unset( $past_failure_emails[ $item->item->theme ] );
    10861095                                }
     1096
    10871097                                $body[] = "\n";
    10881098                        }
  • trunk/src/wp-includes/meta.php

    r48402 r48408  
    12271227 *     @type string     $description       A description of the data attached to this meta key.
    12281228 *     @type bool       $single            Whether the meta key has one value per object, or an array of values per object.
    1229  *     @type mixed      $default           The default value returned from {@see get_metadata()} if no value has been set yet.
    1230  *                                         When using a non-single meta key, the default value is for the first entry. In other
    1231  *                                         words, when calling {@see get_metadata()} with `$single` set to `false`, the default
    1232  *                                         value given here will be wrapped in an array.
     1229 *     @type mixed      $default           The default value returned from get_metadata() if no value has been set yet.
     1230 *                                         When using a non-single meta key, the default value is for the first entry.
     1231 *                                         In other words, when calling get_metadata() with `$single` set to `false`,
     1232 *                                         the default value given here will be wrapped in an array.
    12331233 *     @type string     $sanitize_callback A function or method to call when sanitizing `$meta_key` data.
    12341234 *     @type string     $auth_callback     Optional. A function or method to call when performing edit_post_meta,
  • trunk/src/wp-includes/nav-menu-template.php

    r48364 r48408  
    302302
    303303/**
    304  * Add the class property classes for the current context, if applicable.
     304 * Adds the class property classes for the current context, if applicable.
    305305 *
    306306 * @access private
    … …  
    593593
    594594/**
    595  * Retrieve the HTML list content for nav menu items.
     595 * Retrieves the HTML list content for nav menu items.
    596596 *
    597597 * @uses Walker_Nav_Menu to create HTML list content.
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

    r48386 r48408  
    461461                }
    462462
    463                 // If the file doesn't exist, attempt a URL fopen on the src link.
    464                 // This can occur with certain file replication plugins.
    465                 // Keep the original file path to get a modified name later.
     463                /*
     464                 * If the file doesn't exist, attempt a URL fopen on the src link.
     465                 * This can occur with certain file replication plugins.
     466                 * Keep the original file path to get a modified name later.
     467                 */
    466468                $image_file_to_edit = $image_file;
    467469                if ( ! file_exists( $image_file_to_edit ) ) {
  • trunk/src/wp-includes/widgets.php

    r48389 r48408  
    16571657        </p>
    16581658        <?php
    1659         endif; // end of display options
     1659        endif; // End of display options.
    16601660foreach ( array_keys( $default_inputs ) as $input ) :
    16611661        if ( 'hidden' === $inputs[ $input ] ) :
Note: See TracChangeset for help on using the changeset viewer.