Skip to content

Commit d3acdfe

Browse files
authored
Merge pull request #252 from cloudinary/hotfix/uat
Fix a conflict
2 parents f9259c0 + afa9d51 commit d3acdfe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

js/deactivate.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/src/deactivate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* global window wp cloudinaryApi */
1+
/* global window wp CLD_Deactivate */
22

33
const Deactivate = {
44
// The link that triggers the ThickBox
@@ -58,13 +58,13 @@ const Deactivate = {
5858
// Add event listener to submit the feedback.
5959
context.submitButton.addEventListener( 'click', function() {
6060
wp.ajax.send( {
61-
url: cloudinaryApi.endpoint,
61+
url: CLD_Deactivate.endpoint,
6262
data: {
6363
reason: context.reason,
6464
more: context.more?.value,
6565
},
6666
beforeSend: function( request ) {
67-
request.setRequestHeader( 'X-WP-Nonce', cloudinaryApi.nonce );
67+
request.setRequestHeader( 'X-WP-Nonce', CLD_Deactivate.nonce );
6868
},
6969
} ).always( function() {
7070
window.location.href = context.deactivationUrl;

php/class-deactivation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function enqueue_scripts() {
177177
wp_enqueue_script( 'cloudinary-deactivation', $this->plugin->dir_url . 'js/deactivate.js', array(), $this->plugin->version, true );
178178
wp_localize_script(
179179
'cloudinary-deactivation',
180-
'cloudinaryApi',
180+
'CLD_Deactivate',
181181
array(
182182
'endpoint' => rest_url( REST_API::BASE . '/' . self::$internal_endpoint ),
183183
'nonce' => wp_create_nonce( 'wp_rest' ),

0 commit comments

Comments
 (0)