Making WordPress.org


Ignore:
Timestamp:
01/15/2024 05:23:52 AM (2 years ago)
Author:
dd32
Message:

Plugin Directory: Allow plugins to upload additional versions for review.

This is currently limited to new plugins, which is prior to the first human review.

Iterations upon this will open it to plugins in the pending state as well, which is during the human review.

See #7384.

File:
1 edited

Legend:

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

    r13061 r13109  
    160160            ),
    161161            'description'  => __( 'A Repo Plugin', 'wporg-plugins' ),
    162             'supports'     => array( 'comments', 'author', 'custom-fields' ),
     162            'supports'     => array( 'comments', 'author', 'custom-fields', 'media' ),
    163163            'public'       => true,
    164164            'show_ui'      => true,
     
    17421742
    17431743    /**
    1744      * Create a new post entry for a given plugin slug.
     1744     * Create (or update) a new post entry for a given plugin slug.
    17451745     *
    17461746     * @static
     
    18051805        ) );
    18061806
     1807        $update = ! empty( $args['ID'] );
    18071808        $result = wp_insert_post( $args, true );
    18081809
     
    18111812            $result = get_post( $result );
    18121813
    1813             $owner = get_userdata( $result->post_author );
    1814 
    1815             Tools::audit_log( sprintf(
    1816                 'Submitted by <a href="%s">%s</a>.',
    1817                 esc_url( 'https://profiles.wordpress.org/' . $owner->user_nicename . '/' ),
    1818                 $owner->user_login
    1819             ), $result->ID );
     1814            if ( ! $update ) {
     1815                $owner = get_userdata( $result->post_author );
     1816                Tools::audit_log( sprintf(
     1817                    'Submitted by <a href="%s">%s</a>.',
     1818                    esc_url( 'https://profiles.wordpress.org/' . $owner->user_nicename . '/' ),
     1819                    $owner->user_login
     1820                ), $result->ID );
     1821            }
    18201822        }
    18211823
Note: See TracChangeset for help on using the changeset viewer.