Making WordPress.org

Changeset 12522


Ignore:
Timestamp:
03/31/2023 04:15:23 AM (6 months ago)
Author:
dd32
Message:

Plugin Directory: When a plugin is uploaded using an upload token, add a note to the plugin notes to indicate to the reviewer that it bypassed certain checks.

See #6864.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-upload-token.php

    r12508 r12522  
    11<?php
    22namespace WordPressdotorg\Plugin_Directory\Admin\Tools;
     3use WordPressdotorg\Plugin_Directory\Tools;
    34
    45/**
     
    2930
    3031    /**
    31      * Plugin Submission handler, delete any upload token for that user if used.
     32     * Plugin Submission handler, delete the upload token for that user.
     33     *
     34     * Note: This is only hooked in the event that an upload token was validated as being available.
    3235     */
    3336    public function plugin_upload( $plugin, $plugin_post ) {
    3437        $this->delete_token( $plugin_post->post_author );
     38
     39        Tools::audit_log( 'Plugin submitted using an Upload Token - Bypassed Trademark and Active Install checks.', $plugin_post->ID );
    3540    }
    3641
Note: See TracChangeset for help on using the changeset viewer.