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-support-reps.php

    r11805 r13128  
    3737
    3838        if ( current_user_can( 'plugin_add_support_rep', $post ) || current_user_can( 'plugin_remove_support_rep', $post ) ) {
    39             wp_enqueue_script( 'wporg-plugins-support-reps', plugins_url( 'js/support-reps.js', __FILE__ ), array( 'wp-util' ), true );
     39            wp_enqueue_script( 'wporg-plugins-support-reps', plugins_url( 'js/support-reps.js', __FILE__ ), array( 'wp-util' ), filemtime( __DIR__ . '/js/support-reps.js' ) );
    4040            wp_localize_script( 'wporg-plugins-support-reps', 'supportRepsWidget', array(
    4141                'restUrl'             => get_rest_url(),
    4242                'restNonce'           => wp_create_nonce( 'wp_rest' ),
    4343                'pluginSlug'          => $post->post_name,
    44                 'removeSupportRepAYS' => __( 'Are you sure you want to remove this support rep?', 'wporg-plugins' ),
     44                'removeSupportRepAYS' => __( 'Are you sure you want to remove %s as a support rep?', 'wporg-plugins' ),
    4545            ) );
    4646        } elseif ( ! $support_reps ) {
Note: See TracChangeset for help on using the changeset viewer.