Skip to content

Commit 4a94c93

Browse files
authored
Merge pull request #66 from n49/slider_v1.0.94
added nitropack exclusion attributes to shortcode container
2 parents e50eab2 + 220e1f6 commit 4a94c93

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

includes/class-feed-shortcode.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,18 @@ public function init($atts) {
5656
$option = $review_option == "opio" ? "reviewFeed" : "allReviewFeed";
5757
$opio_handler = new Opio_Handler($biz_id, $option, $review_type, $org_id);
5858
$reviews = $opio_handler->get_business();
59+
60+
// Wrap output with Nitropack exclusion wrapper
61+
echo '<div data-nitro-exclude="all" data-nitro-ignore="true" data-nitro-no-optimize="true" data-nitro-preserve-ws="true">';
62+
5963
if($option == "allReviewFeeds" && $review_type == "singles") {
6064
$reviews = $this->feed_deserializer->prepareString($reviews);
6165
echo wp_kses($reviews, $this->feed_deserializer->get_allowed_tags());
6266
}
6367
else {
6468
echo $reviews;
6569
}
70+
echo '</div>';
6671
return ob_get_clean();
6772
}
6873
}

opio.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Widget for OPIO Reviews
44
Plugin URI:
55
Description: Instantly add OPIO Reviews on your website to increase user confidence and SEO.
6-
Version: 1.0.93
6+
Version: 1.0.94
77
Author: Dhiraj Timalsina <dhiraj@n49.com>
88
Text Domain: widget-for-opio-reviews
99
Domain Path: /languages
@@ -22,7 +22,7 @@
2222

2323
require(ABSPATH . 'wp-includes/version.php');
2424

25-
define('OPIO_PLUGIN_VERSION' , '1.0.93');
25+
define('OPIO_PLUGIN_VERSION' , '1.0.94');
2626
define('OPIO_PLUGIN_FILE' , __FILE__);
2727
define('OPIO_PLUGIN_URL' , plugins_url(basename(plugin_dir_path(__FILE__ )), basename(__FILE__)));
2828
define('OPIO_ASSETS_URL' , OPIO_PLUGIN_URL . '/assets/');

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Author: Dhiraj Timalsina
33
Tags: Widget for OPIO Reviews, opio, reviews, rating, widget, google business, testimonials
44
Tested up to: 6.4
5-
Stable tag: 1.0.93
5+
Stable tag: 1.0.94
66
License: GPLv2 or later
77
License URI: http://www.gnu.org/licenses/gpl-2.0.html
88

0 commit comments

Comments
 (0)