Changeset 48408
- Timestamp:
- 07/08/2020 01:13:50 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-automatic-updater.php
r48397 r48408 945 945 $past_failure_emails = get_option( 'auto_plugin_theme_update_emails', array() ); 946 946 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 */ 950 952 if ( 'fail' === $type ) { 951 953 foreach ( $failed_updates as $update_type => $failures ) { … … 1044 1046 1045 1047 foreach ( $failed_updates['plugin'] as $item ) { 1046 $body[] = "- {$item->name}"; 1048 $body[] = "- {$item->name}"; 1049 1047 1050 $past_failure_emails[ $item->item->plugin ] = $item->item->new_version; 1048 1051 } 1052 1049 1053 $body[] = "\n"; 1050 1054 } … … 1055 1059 1056 1060 foreach ( $failed_updates['theme'] as $item ) { 1057 $body[] = "- {$item->name}"; 1061 $body[] = "- {$item->name}"; 1062 1058 1063 $past_failure_emails[ $item->item->theme ] = $item->item->new_version; 1059 1064 } 1065 1060 1066 $body[] = "\n"; 1061 1067 } … … 1072 1078 foreach ( $successful_updates['plugin'] as $item ) { 1073 1079 $body[] = "- {$item->name}"; 1080 1074 1081 unset( $past_failure_emails[ $item->item->plugin ] ); 1075 1082 } 1083 1076 1084 $body[] = "\n"; 1077 1085 } … … 1080 1088 if ( ! empty( $successful_updates['theme'] ) ) { 1081 1089 $body[] = __( 'These themes are now up to date:' ); 1082 // List successful updates. 1090 1083 1091 foreach ( $successful_updates['theme'] as $item ) { 1084 1092 $body[] = "- {$item->name}"; 1093 1085 1094 unset( $past_failure_emails[ $item->item->theme ] ); 1086 1095 } 1096 1087 1097 $body[] = "\n"; 1088 1098 } -
trunk/src/wp-includes/meta.php
r48402 r48408 1227 1227 * @type string $description A description of the data attached to this meta key. 1228 1228 * @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 other1231 * words, when calling {@see get_metadata()} with `$single` set to `false`, the default1232 * 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. 1233 1233 * @type string $sanitize_callback A function or method to call when sanitizing `$meta_key` data. 1234 1234 * @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 302 302 303 303 /** 304 * Add the class property classes for the current context, if applicable.304 * Adds the class property classes for the current context, if applicable. 305 305 * 306 306 * @access private … … 593 593 594 594 /** 595 * Retrieve the HTML list content for nav menu items.595 * Retrieves the HTML list content for nav menu items. 596 596 * 597 597 * @uses Walker_Nav_Menu to create HTML list content. -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r48386 r48408 461 461 } 462 462 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 */ 466 468 $image_file_to_edit = $image_file; 467 469 if ( ! file_exists( $image_file_to_edit ) ) { -
trunk/src/wp-includes/widgets.php
r48389 r48408 1657 1657 </p> 1658 1658 <?php 1659 endif; // end of display options1659 endif; // End of display options. 1660 1660 foreach ( array_keys( $default_inputs ) as $input ) : 1661 1661 if ( 'hidden' === $inputs[ $input ] ) :
Note: See TracChangeset
for help on using the changeset viewer.