Making WordPress.org


Ignore:
Timestamp:
03/30/2023 03:37:47 AM (21 months ago)
Author:
dd32
Message:

Plugin Directory: Administration: Add bulk actions for close/disable/open.

This streamlines administration of cases where a large group of plugins need to be disabled or re-opened.

Fixes #6903.

File:
1 edited

Legend:

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

    r12175 r12517  
    323323     */
    324324    public function save_close_reason( $post_id ) {
    325         if ( ! isset( $_POST['close_reason'] ) ) {
     325        if ( ! isset( $_REQUEST['close_reason'] ) ) {
    326326            return;
    327327        }
     
    331331        }
    332332
    333         $close_reason = sanitize_key( $_POST['close_reason'] );
     333        $close_reason = sanitize_key( $_REQUEST['close_reason'] );
    334334
    335335        update_post_meta( $post_id, '_close_reason', $close_reason );
Note: See TracChangeset for help on using the changeset viewer.