Making WordPress.org


Ignore:
Timestamp:
01/19/2024 04:52:27 AM (11 months ago)
Author:
dd32
Message:

Plugin Directory: Include the name of the user being removed as a committer / support rep.

Fixes #5975.

File:
1 edited

Legend:

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

    r11805 r13128  
    3636
    3737        if ( current_user_can( 'plugin_add_committer', $post ) || current_user_can( 'plugin_remove_committer', $post ) ) {
    38             wp_enqueue_script( 'wporg-plugins-committers', plugins_url( 'js/committers.js', __FILE__ ), array( 'wp-util' ), true );
     38            wp_enqueue_script( 'wporg-plugins-committers', plugins_url( 'js/committers.js', __FILE__ ), array( 'wp-util' ), filemtime( __DIR__ . '/js/committers.js' ) );
    3939            wp_localize_script( 'wporg-plugins-committers', 'committersWidget', array(
    4040                'restUrl'            => get_rest_url(),
    4141                'restNonce'          => wp_create_nonce( 'wp_rest' ),
    4242                'pluginSlug'         => $post->post_name,
    43                 'removeCommitterAYS' => __( 'Are you sure you want to remove this committer?', 'wporg-plugins' ),
     43                'removeCommitterAYS' => __( 'Are you sure you want to remove %s as a committer?', 'wporg-plugins' ),
    4444            ) );
    4545        }
Note: See TracChangeset for help on using the changeset viewer.