Making WordPress.org


Ignore:
Timestamp:
04/28/2016 06:01:20 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Introduce an approved post status.

Approving a plugin creates the SVN repo and commits the approved plugin files
to that repo. It also add the plugin author to the list of authorised
committers and sends out a congratulatory email.

A plugin will require an initial SVN commit by the post author to then be moved
to publish, making it visible in the directory.

See https://wordpress.slack.com/archives/meta/p1461805883000448
See #1570.

File:
1 edited

Legend:

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

    r3034 r3036  
    2525     */
    2626    private function __construct() {
    27         add_action( 'publish_plugin', array( $this, 'publish' ), 10, 2 );
     27        add_action( 'approved_plugin', array( $this, 'approved' ), 10, 2 );
    2828        add_action( 'rejected_plugin', array( $this, 'rejected' ), 10, 2 );
    2929    }
     
    6666
    6767    /**
    68      * Fires when a post is transitioned to 'publish'.
     68     * Fires when a post is transitioned to 'approved'.
    6969     *
    7070     * @param int      $post_id Post ID.
    7171     * @param \WP_Post $post    Post object.
    7272     */
    73     public function publish( $post_id, $post ) {
     73    public function approved( $post_id, $post ) {
    7474        $attachments = get_attached_media( 'application/zip', $post_id );
    7575
Note: See TracChangeset for help on using the changeset viewer.