Changeset 13962
- Timestamp:
- 08/12/2024 03:03:00 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php
r13794 r13962 765 765 } 766 766 767 $text = sprintf( 768 "New ZIP uploaded by %s, version %s.\nComment: %s\n%s", 767 $text = "This is an automated message to confirm that we have received your updated plugin file.\n\n"; 768 $text .= sprintf( 769 "File updated by %s, version %s.\n", 769 770 wp_get_current_user()->user_login, 770 $attachment->version, 771 $attachment->post_content, 772 wp_get_attachment_url( $attachment->ID ) 771 $attachment->version 773 772 ); 773 774 // Was a comment added? 775 if ( $attachment->post_content ) { 776 $text .= "Comment: " . $attachment->post_content . "\n"; 777 } 778 779 // Append the ZIP URL. 780 $text .= "\n" . wp_get_attachment_url( $attachment->ID ); 774 781 775 782 $name = wp_get_current_user()->display_name ?: wp_get_current_user()->user_login;
Note: See TracChangeset
for help on using the changeset viewer.