PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
← All changes | libraries/freemius/templates/gdpr-optin-js.php +3 -2 2.0.4 → 3.4 View file →
@@ -28,9 +28,10 @@
28 28 $this = $( this ),
29 29 allowMarketing = $this.hasClass( 'allow-marketing' ),
30 30 cursor = $this.css( 'cursor' ),
31 31 $products = $gdprOptinNotice.find( 'span[data-plugin-id]' ),
32 - pluginIDs = [];
32 + pluginIDs = [],
33 + ajaxUrl = <?php echo Freemius::ajax_url() ?>;
33 34
34 35 if ( $products.length > 0 ) {
35 36 $products.each(function() {
36 37 pluginIDs.push( $( this ).data( 'plugin-id' ) );
@@ -37,9 +38,9 @@
37 38 });
38 39 }
39 40
40 41 $.ajax({
41 - url : <?php echo Freemius::ajax_url() ?> + '?' + $.param({
42 + url : ajaxUrl + (ajaxUrl.includes('?') ? '&' : '?') + $.param({
42 43 action : '<?php echo $fs->get_ajax_action( 'gdpr_optin_action' ) ?>',
43 44 security : '<?php echo $fs->get_ajax_security( 'gdpr_optin_action' ) ?>',
44 45 module_id: '<?php echo $fs->get_id() ?>'
45 46 }),