Plugin Directory

Changeset 3344301


Ignore:
Timestamp:
08/14/2025 05:35:10 AM (6 months ago)
Author:
wisernotify
Message:

Updating trunk to version 1.6

Location:
wiser-review/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wiser-review/trunk/readme.txt

    r3344241 r3344301  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 1.5
     8Stable tag: 1.6
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    110110SKU id supported for cross store & google merchant
    111111
     112= 1.6 =
     113Fix- Product ID & SKU id issues, After update, submit the key again
  • wiser-review/trunk/wiser-review.php

    r3344241 r3344301  
    44 * Plugin URI: https://wiserreview.com
    55 * Description: Wiser Review module helps you collect and display product reviews, star ratings, and nudges. It also automates review requests via email to boost custom engagement and conversions.
    6  * Version: 1.5
     6 * Version: 1.6
    77 * Author: Wiser Notify
    88 * Requires Plugins: woocommerce
     
    185185    if ( $wiserrw_api_settings && '1' === $wiserrw_api_settings['wiserrw_live_mode_checkbox'] ) {
    186186        $wiserrw_api_data = get_option( 'wiserrw_api_data' );
    187         $product_rating_count = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->product_rating_count );
    188         $product_rating_count = preg_replace( "/data-skuid='(.*?)'/", "data-skuid='$sku'", $wiserrw_api_data->product_rating_count );
     187        $product_rating_count_pid = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->product_rating_count );
     188        $product_rating_count = preg_replace( "/data-skuid='(.*?)'/", "data-skuid='$sku'", $product_rating_count_pid );
    189189        $allowed_tags = array(
    190190            'div' => array(
     
    196196            ),
    197197        );
    198         echo wp_kses( $product_rating_count, $allowed_tags );
     198        echo $product_rating_count;
    199199        $output = ob_get_contents();
    200200        return ob_get_clean();
     
    212212        $product_id = get_the_ID();
    213213        $product = wc_get_product( $product_id );
    214         $sku = $product->get_sku();
     214      $sku = $product->get_sku();
    215215        $wiserrw_api_data = get_option( 'wiserrw_api_data' );
    216         $product_review_section = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->product_review_section );
    217         $product_review_section = preg_replace( "/data-skuid='(.*?)'/", "data-skuid='$sku'", $wiserrw_api_data->product_review_section );
     216        $product_review_section_pid = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->product_review_section );
     217        $product_review_section = preg_replace( "/data-skuid='(.*?)'/", "data-skuid='$sku'", $product_review_section_pid );
    218218       
    219219        $product_rating_count = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->product_rating_count );
     
    232232            ),
    233233        );
    234         echo wp_kses( $product_review_section, $allowed_tags );
     234        echo $product_review_section;
    235235    }
    236236    $output = ob_get_contents();
     
    253253       
    254254        $wiserrw_api_data = get_option( 'wiserrw_api_data' );
    255         $nudges_section = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->nudges_section );
    256         $nudges_section = preg_replace( "/data-skuid='(.*?)'/", "data-pid='$sku'", $wiserrw_api_data->nudges_section );
     255    $nudges_section_pid = preg_replace( "/data-pid='(.*?)'/", "data-pid='$product_id'", $wiserrw_api_data->nudges_section );
     256    $nudges_section = preg_replace( "/data-skuid='(.*?)'/", "data-skuid='$sku'", $nudges_section_pid );
    257257        $allowed_tags = array(
    258258            'div' => array(
     
    264264            ),
    265265        );
    266         echo wp_kses( $nudges_section, $allowed_tags );
     266        echo $nudges_section;
    267267    }
    268268    $output = ob_get_contents();
     
    285285            )
    286286        );
    287         //var_dump($all_orders);
    288287    }
    289288}
Note: See TracChangeset for help on using the changeset viewer.