Changeset 2520157
- Timestamp:
- 04/23/2021 04:48:17 AM (5 years ago)
- Location:
- wp-customer-reviews/trunk
- Files:
-
- 7 edited
-
changelog.txt (modified) (1 diff)
-
include/admin/wp-customer-reviews-3-admin.php (modified) (3 diffs)
-
include/templates/frontend_review_form.html (modified) (1 diff)
-
include/templates/frontend_review_item_reviews.html (modified) (2 diffs)
-
js/wp-customer-reviews.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-customer-reviews-3.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-customer-reviews/trunk/changelog.txt
r2432852 r2520157 1 = 3.5.6 = 2 * 04/22/2021 3 * [Update] Added compatibility with WordPress 5.7 4 * [Bugfix] Space missing around "by" and "on". You may need to deactivate/activate the plugin to see this change. 5 * [Security] Prevented low-risk XSS which could be injected by an administrator user role. 6 1 7 = 3.5.5 = 2 8 * 12/06/2020 -
wp-customer-reviews/trunk/include/admin/wp-customer-reviews-3-admin.php
r2371707 r2520157 72 72 foreach ($options->options as $valObj) { 73 73 echo ' <tr><td>'; 74 if (isset($options->editable_label) && $options->editable_label == "1") { 75 echo '<input class="'.$options->class.'" name="'.$name.'['.$valObj->value.'][label]" value="'.$value[$valObj->value]['label'].'" />'; 74 if (isset($options->editable_label) && $options->editable_label == "1") { 75 $label = wp_kses($value[$valObj->value]['label'], $this->allowedFieldTags); 76 echo '<input class="'.$options->class.'" name="'.$name.'['.$valObj->value.'][label]" value="'.$label.'" />'; 76 77 } else { 77 78 echo $value[$valObj->value]['label']; … … 204 205 foreach ($options->options as $valObj) { 205 206 $default_options[$name][$valObj->value] = array(); 206 $default_options[$name][$valObj->value]['label'] = $valObj->label;207 $default_options[$name][$valObj->value]['label'] = wp_kses($valObj->label, $this->allowedFieldTags); 207 208 foreach ($valObj->checkboxes as $cbObj) { 208 209 $default_options[$name][$valObj->value][$cbObj->value] = $cbObj->default; … … 1105 1106 $default_options[$name][$valObj->value] = array(); 1106 1107 if (isset($postVal[$valObj->value]['label'])) { 1107 $default_options[$name][$valObj->value]['label'] = $postVal[$valObj->value]['label']; 1108 $label = wp_kses($postVal[$valObj->value]['label'], $this->allowedFieldTags); 1109 $default_options[$name][$valObj->value]['label'] = $label; 1108 1110 } 1109 1111 foreach ($valObj->checkboxes as $cbObj) { -
wp-customer-reviews/trunk/include/templates/frontend_review_form.html
r2371707 r2520157 30 30 Check this box to confirm you are human. 31 31 </label> 32 <input type="checkbox" class="wpcr3_fakehide wpcr3_fconfirm3" name="wpcr3_fconfirm3" checked="checked" 33 value="1" /> 32 <input type="checkbox" class="wpcr3_fakehide wpcr3_fconfirm3" name="wpcr3_fconfirm3" checked="checked" value="1" /> 34 33 </td> 35 34 </tr> -
wp-customer-reviews/trunk/include/templates/frontend_review_item_reviews.html
r2371707 r2520157 14 14 <div class="wpcr3_review_ratingValue">{{stars}}</div> 15 15 <div class="wpcr3_review_datePublished" itemprop="datePublished">{{post_date}}</div> 16 <div class="wpcr3_review_author"> by16 <div class="wpcr3_review_author"> by 17 17 <span class="wpcr3_caps"> 18 18 {{:wpcr3_review_website}} … … 22 22 {{wpcr3_review_name}} 23 23 {{/wpcr3_review_website}} 24 </span> on24 </span> on 25 25 <span class="wpcr3_item_name"> 26 26 {{:on_same_page}} -
wp-customer-reviews/trunk/js/wp-customer-reviews.js
r2369676 r2520157 74 74 var div2 = parent.find('.wpcr3_div_2'), submit = div2.find('.wpcr3_submit_btn'); 75 75 var c1 = parent.find('.wpcr3_fconfirm1'), c2 = parent.find('.wpcr3_fconfirm2'), c3 = parent.find('.wpcr3_fconfirm3'); 76 var fake_website = parent.find('.wpcr3_fake_website') , fake_url = parent.find('.wpcr3_fake_url');76 var fake_website = parent.find('.wpcr3_fake_website'); 77 77 78 78 if (submit.hasClass('wpcr3_disabled')) { return false; } -
wp-customer-reviews/trunk/readme.txt
r2432852 r2520157 4 4 Tags: business, google, hcard, schema.org, hproduct, hreview, microformat, microformats, mu, places, plugin, product, rating, ratings, rdfa, review, review box, review widget, reviews, seo, service, snippet, snippets, testimonial, testimonials, widget, wordpressmu, wpmu 5 5 Requires at least: 3.0.0 6 Tested up to: 5. 67 Stable tag: 3.5. 56 Tested up to: 5.7 7 Stable tag: 3.5.6 8 8 License: MIT 9 9 License URI: http://opensource.org/licenses/MIT … … 63 63 == Changelog == 64 64 65 = 3.5.6 = 66 * 04/22/2021 67 * [Update] Added compatibility with WordPress 5.7 68 * [Bugfix] Space missing around "by" and "on". You may need to deactivate/activate the plugin to see this change. 69 * [Security] Prevented low-risk XSS which could be injected by an administrator user role. 70 65 71 = 3.5.5 = 66 72 * 12/06/2020 -
wp-customer-reviews/trunk/wp-customer-reviews-3.php
r2432852 r2520157 2 2 /* 3 3 * Plugin Name: WP Customer Reviews 4 * Plugin URI: http ://www.gowebsolutions.com/wp-customer-reviews/4 * Plugin URI: https://www.gowebsolutions.com/wp-customer-reviews/ 5 5 * Description: Allows your visitors to leave business / product reviews. Testimonials are in Microdata / Microformat and may display star ratings in search results. 6 * Version: 3.5. 56 * Version: 3.5.6 7 7 * Author: Go Web Solutions 8 * Author URI: http ://www.gowebsolutions.com/8 * Author URI: https://www.gowebsolutions.com/ 9 9 * Text Domain: wp-customer-reviews 10 10 * License: MIT 11 11 * 12 * Copyright (c) 202 0Go Web Solutions12 * Copyright (c) 2021 Go Web Solutions 13 13 * 14 14 * Permission is hereby granted, free of charge, to any person obtaining a copy … … 36 36 var $prefix = 'wpcr3'; 37 37 var $dashname = 'wp-customer-reviews-3'; 38 var $url = 'http ://www.gowebsolutions.com/wp-customer-reviews/';39 var $support_link = 'http ://wordpress.org/tags/wp-customer-reviews?forum_id=10';40 var $prolink = 'http ://www.gowebsolutions.com/wp-customer-reviews/';38 var $url = 'https://www.gowebsolutions.com/wp-customer-reviews/'; 39 var $support_link = 'https://wordpress.org/support/plugin/wp-customer-reviews/'; 40 var $prolink = 'https://www.gowebsolutions.com/wp-customer-reviews/'; 41 41 var $plugin_info = false; 42 42 var $plugin_version = '0.0.0'; … … 821 821 822 822 $required = ($fieldArr['require'] == 1); 823 823 824 $data = array( 824 825 'name' => $this->prefix.'_'.$name, 825 'label' => $fieldArr['label'],826 'label' => wp_kses($fieldArr['label'], $this->allowedFieldTags), 826 827 'required' => $required ? '*' : '', 827 828 'class' => $required ? $this->prefix.'_required' : '', … … 869 870 } 870 871 871 $has_required_fields = strpos($input_fields, $this->prefix.'_required') !== false;872 $has_required_fields = strpos($input_fields, $this->prefix.'_required') !== false; 872 873 $rating_field = $this->get_rating_field(); 873 874 $review_field = $this->get_review_field();
Note: See TracChangeset
for help on using the changeset viewer.