Making WordPress.org


Ignore:
Timestamp:
04/29/2024 07:36:53 AM (20 months ago)
Author:
dd32
Message:

Plugin Directory: Add a 'pending plugin' API endpoint to fetch information about a plugin in review.

This is intended to be used by the Reviewer tools, such that the tools can use information known to the plugin directory about the ZIP being reviewed.

See #7385.

File:
1 edited

Legend:

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

    r13609 r13610  
    469469        // First time submission, track some additional metadata.
    470470        if ( ! $updating_existing ) {
    471             $post_args['meta_input']['_author_ip']        = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );
    472             $post_args['meta_input']['_submitted_date']   = time();
    473             $post_args['meta_input']['_used_upload_token'] = $has_upload_token;
     471            $post_args['meta_input']['_author_ip']            = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );
     472            $post_args['meta_input']['_submitted_date']       = time();
     473            $post_args['meta_input']['_used_upload_token']    = $has_upload_token;
     474            $post_args['meta_input']['_pending_access_token'] = md5( wp_generate_password( 32, true, true ) );
    474475        }
    475476
Note: See TracChangeset for help on using the changeset viewer.