Making WordPress.org


Ignore:
Timestamp:
08/28/2020 05:36:38 AM (3 years ago)
Author:
dd32
Message:

Plugin Directory: Add an initial run at Release Confirmation for plugins.

This is currently only enabled for plugin review members, as it needs some testing in production prior to being available to others.

Notably, this requires that a plugin be using tagged releases, it doesn't handle trunk releases (yet), that will be added next.

See: #5352

File:
1 edited

Legend:

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

    r7798 r10214  
    5959        add_filter( 'wp_ajax_delete-support-rep', array( __NAMESPACE__ . '\Metabox\Support_Reps', 'remove_support_rep' ) );
    6060        add_action( 'wp_ajax_plugin-author-lookup', array( __NAMESPACE__ . '\Metabox\Author', 'lookup_author' ) );
     61
     62        add_action( 'save_post', array( __NAMESPACE__ . '\Metabox\Release_Confirmation', 'save_post' ) );
    6163    }
    6264
     
    410412
    411413        add_meta_box(
     414            'plugin-release-confirmation',
     415            __( 'Plugin Release Confirmation', 'wporg-plugins' ),
     416            array( __NAMESPACE__ . '\Metabox\Release_Confirmation', 'display' ),
     417            'plugin', 'normal', 'high'
     418        );
     419
     420        add_meta_box(
    412421            'plugin-author',
    413422            __( 'Author Card', 'wporg-plugins' ),
Note: See TracChangeset for help on using the changeset viewer.