Make WordPress Core


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

Docs: Miscellaneous DocBlock corrections.

See #49572.

File:
1 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            }
Note: See TracChangeset for help on using the changeset viewer.