Making WordPress.org

Changeset 13962


Ignore:
Timestamp:
08/12/2024 03:03:00 AM (2 months ago)
Author:
dd32
Message:

Plugin Directory: Update the template for when a plugin author uploads an additional ZIP for review.

Originally this was a log purely for the plugin reviewers, but now it's received by the plugin author too.
As such, this updates the text to make it clear to the plugin author it's an automated message.

Props frantorres.
Fixes #7744.

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  
    765765        }
    766766
    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",
    769770            wp_get_current_user()->user_login,
    770             $attachment->version,
    771             $attachment->post_content,
    772             wp_get_attachment_url( $attachment->ID )
     771            $attachment->version
    773772        );
     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 );
    774781
    775782        $name = wp_get_current_user()->display_name ?: wp_get_current_user()->user_login;
Note: See TracChangeset for help on using the changeset viewer.