Plugin Directory

Changeset 3452582


Ignore:
Timestamp:
02/03/2026 06:00:39 AM (8 weeks ago)
Author:
wisernotify
Message:

Updating trunk to version 3.0

Location:
wiser-review/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wiser-review/trunk/assets/js/wiserw-js.js

    r3379720 r3452582  
    106106            type : 'POST',
    107107            url : ajaxurl,
    108             data : $form.serialize() + '&action=wiserrw_save_settings',
     108            data : $form.serialize() + '&action=wiserrw_save_settings&nonce=' + wiserrw_ajax_var.nonce,
    109109            success: function (res) {
    110110                const $toggle = $current_chek.closest('.wiserrw_toggle');
  • wiser-review/trunk/readme.txt

    r3399023 r3452582  
    44Donate link: https://wiserreview.com/
    55Requires at least: 5.6
    6 Tested up to: 6.8
     6Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 2.9
     8Stable tag: 3.0
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    208208== Changelog ==
    209209
     210= 3.0 =
     211* Improved: Star rating clicks & optimized for better performance
     212
    210213= 2.9 =
    211214* Fixed: Plugin name updated to comply with WordPress.org trademark guidelines
  • wiser-review/trunk/wiser-review.php

    r3399023 r3452582  
    44 * Plugin URI: https://wiserreview.com
    55 * Description: Collect, manage, and display powerful product reviews and testimonials in WooCommerce using the WiserReview platform. Boost trust and conversion with automated review collection.
    6  * Version: 2.9
     6 * Version: 3.0
    77 * Author: Wiser Notify
    88 * Author URI: https://wiserreview.com
    99 * Requires Plugins: woocommerce
    10  * Tested up to: 6.8
     10 * Tested up to: 6.9
    1111 * Requires at least: 5.6
    1212 * Requires PHP: 7.4
     
    2424define( 'WISERRW_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    2525define( 'WISERRW_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    26 define( 'WISERRW_PLUGIN_VERSION', '2.9' );
     26define( 'WISERRW_PLUGIN_VERSION', '3.0' );
    2727define( 'WISERRW_API_HOST', 'https://api.wiserreview.com/api/woocommerce/' );
    2828
     
    5858
    5959function wiserrw_ajax_save_settings() {
     60    // Verify nonce for security
     61    if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['nonce'] ) ), 'wiserrw_save_settings' ) ) {
     62        wp_send_json_error( array(
     63            'message' => 'Security check failed.',
     64        ), 403 );
     65    }
     66
     67    // Check user capabilities
     68    if ( ! current_user_can( 'manage_options' ) ) {
     69        wp_send_json_error( array(
     70            'message' => 'Unauthorized access.',
     71        ), 403 );
     72    }
     73
    6074    $wiserrw_data = isset( $_POST['wiserrw_data'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_POST['wiserrw_data'] ) ) : array();
    6175    update_option( 'wiserrw_api_settings', $wiserrw_data );
Note: See TracChangeset for help on using the changeset viewer.