Plugin Directory

Changeset 3369485


Ignore:
Timestamp:
09/29/2025 07:29:36 AM (6 months ago)
Author:
provesource
Message:

Update ajax actions to have a provesrc_ prefix

Location:
provesource
Files:
13 added
2 edited

Legend:

Unmodified
Added
Removed
  • provesource/trunk/provesrc.php

    r3367810 r3369485  
    88 * Plugin Name: ProveSource
    99 * Description: ProveSource is a social proof marketing platform that works with your Wordpress and WooCommerce websites out of the box
    10  * Version: 3.1.0
     10 * Version: 3.1.1
    1111 * Author: ProveSource LTD
    1212 * Author URI: https://provesrc.com
     
    2424/** constants */
    2525define('PROVESRC_HOST', 'https://api.provesrc.com');
    26 define('PROVESRC_VERSION', '3.1.0');
     26define('PROVESRC_VERSION', '3.1.1');
    2727define('PROVESRC_OPTIONS_GROUP', 'provesrc_options');
    2828
     
    5050add_action('admin_menu', 'provesrc_admin_menu'); //1.5.0
    5151add_action('admin_init', 'provesrc_admin_init'); //2.5.0
    52 add_action('admin_notices', 'provesrc_admin_notice_html'); //3.1.0
     52add_action('admin_notices', 'provesrc_admin_notice_html');
    5353add_action('wp_head', 'provesrc_inject_code'); //1.2.0
    5454
     
    7777add_action('update_option_' . PROVESRC_LEGACY_OPTION_EVENTS_KEY, 'provesrc_hook_updated', 999, 3);
    7878
    79 add_action('wp_ajax_import_last_30_orders', 'provesrc_import_last_30_orders');
    80 add_action('wp_ajax_download_debug_log', 'provesrc_download_debug_log');
     79add_action('wp_ajax_provesrc_import_orders', 'provesrc_import_orders');
     80add_action('wp_ajax_provesrc_debug_log', 'provesrc_debug_log');
    8181
    8282function provesrc_admin_menu()
     
    728728}
    729729
    730 function provesrc_import_last_30_orders()
    731 {
    732     if (!isset($_POST['security']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['security'])), 'import_orders_nonce')) {
     730function provesrc_import_orders()
     731{
     732    if (!isset($_POST['security']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['security'])), 'provesrc_import_orders_nonce')) {
    733733        wp_send_json_error('Invalid request');
    734734        return;
     
    790790}
    791791
    792 function provesrc_download_debug_log()
    793 {
    794     if (!isset($_POST['security']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['security'])), 'download_debug_log_nonce')) {
     792function provesrc_debug_log()
     793{
     794    if (!isset($_POST['security']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['security'])), 'provesrc_debug_log_nonce')) {
    795795        wp_send_json_error('Invalid request');
    796796        return;
     
    910910                                type: 'POST',
    911911                                data: {
    912                                     action: 'download_debug_log',
    913                                     security: '<?php echo esc_js(wp_create_nonce("download_debug_log_nonce")); ?>'
     912                                    action: 'provesrc_debug_log',
     913                                    security: '<?php echo esc_js(wp_create_nonce("provesrc_debug_log_nonce")); ?>'
    914914                                },
    915915                                success: function(response) {
     
    10431043                                    type: 'POST',
    10441044                                    data: {
    1045                                         action: 'import_last_30_orders',
    1046                                         security: '<?php echo esc_js(wp_create_nonce("import_orders_nonce")); ?>'
     1045                                        action: 'provesrc_import_orders',
     1046                                        security: '<?php echo esc_js(wp_create_nonce("provesrc_import_orders_nonce")); ?>'
    10471047                                    },
    10481048                                    success: function(response) {
  • provesource/trunk/readme.txt

    r3367810 r3369485  
    66Requires at least: 3.0
    77Tested up to: 6.8
    8 Stable tag: 3.1.0
     8Stable tag: 3.1.1
    99License: GPL-3.0-or-later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.