Making WordPress.org


Ignore:
Timestamp:
07/26/2017 12:45:49 AM (8 years ago)
Author:
tellyworth
Message:

Plugin directory: ask for confirmation before removing a committer. Props @Nikschavan

Fixes #2800

File:
1 edited

Legend:

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

    r5259 r5716  
    3737            wp_enqueue_script( 'wporg-plugins-committers', plugins_url( 'js/committers.js', __FILE__ ), array( 'wp-util' ), true );
    3838            wp_localize_script( 'wporg-plugins-committers', 'committersWidget', array(
    39                 'restUrl'    => get_rest_url(),
    40                 'restNonce'  => wp_create_nonce( 'wp_rest' ),
    41                 'pluginSlug' => $post->post_name,
     39                'restUrl'            => get_rest_url(),
     40                'restNonce'          => wp_create_nonce( 'wp_rest' ),
     41                'pluginSlug'         => $post->post_name,
     42                'removeCommitterAYS' => __( 'Are you sure you want to remove this committer?', 'wporg-plugins' ),
    4243            ) );
    4344        }
Note: See TracChangeset for help on using the changeset viewer.