Changeset 13128 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-support-reps.php
- Timestamp:
- 01/19/2024 04:52:27 AM (11 months ago)
- 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 37 37 38 38 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' ) ); 40 40 wp_localize_script( 'wporg-plugins-support-reps', 'supportRepsWidget', array( 41 41 'restUrl' => get_rest_url(), 42 42 'restNonce' => wp_create_nonce( 'wp_rest' ), 43 43 'pluginSlug' => $post->post_name, 44 'removeSupportRepAYS' => __( 'Are you sure you want to remove thissupport rep?', 'wporg-plugins' ),44 'removeSupportRepAYS' => __( 'Are you sure you want to remove %s as a support rep?', 'wporg-plugins' ), 45 45 ) ); 46 46 } elseif ( ! $support_reps ) {
Note: See TracChangeset
for help on using the changeset viewer.