Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
[Fix] Comments area layout in the TwentyTwenty theme
[Fix] Pros and Cons texts not translatable with Polylang
[Fix] Image missing link in the Top Products Widget  
[Fix] Bulk activation of plugin aborts activation of subsequent plugins
  • Loading branch information
rodica-andronache committed May 8, 2020
2 parents 758d11e + f498713 commit d102279
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 22 deletions.
26 changes: 17 additions & 9 deletions assets/css/comments.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,14 @@
box-shadow: none;
}

/*Responsiveness in comments area*/
@media (max-width: 767px) {
.user-comments-grades {
float: none;
width: 100%;
margin: 0 0 20px 0;
}
}

.wppr-clear {
clear: both;
float: none;
}

#wppr-comment-rating-stars .wppr-comment-rating-star {
width: 20%;
max-width: 26%;
}
#wppr-comment-rating-stars .wppr-comment-rating-star > input { display: none; }
#wppr-comment-rating-stars .wppr-comment-rating-star > label:before {
Expand Down Expand Up @@ -200,3 +196,15 @@
color: #FFED85;
cursor: pointer;
}

/*Responsiveness in comments area*/
@media (max-width: 767px) {
.user-comments-grades {
float: none;
width: 100%;
margin: 0 0 20px 0;
}
#wppr-comment-rating-stars .wppr-comment-rating-star {
max-width: 45%;
}
}
11 changes: 7 additions & 4 deletions includes/admin/class-wppr-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,14 +613,17 @@ public function add_image_size() {
*
* @access public
*/
public function on_activation( $plugin ) {
public function on_activation() {
if ( defined( 'TI_UNIT_TESTING' ) ) {
return;
}

if ( $plugin === WPPR_BASENAME ) {
wp_redirect( admin_url( 'admin.php?page=wppr-support&tab=help#shortcode' ) );
exit();
if ( get_option( 'wppr-activated' ) ) {
delete_option( 'wppr-activated' );
if ( ! headers_sent() ) {
wp_redirect( admin_url( 'admin.php?page=wppr-support&tab=help#shortcode' ) );
exit();
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion includes/class-wppr-activator.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class WPPR_Activator {
* @since 1.0.0
*/
public static function activate() {

add_option( 'wppr-activated', true );
}

}
4 changes: 2 additions & 2 deletions includes/class-wppr.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class WPPR {
*/
public function __construct() {
$this->plugin_name = 'wppr';
$this->version = '3.7.4';
$this->version = '3.7.5';

$this->load_dependencies();
$this->set_locale();
Expand Down Expand Up @@ -140,7 +140,7 @@ private function define_admin_hooks() {
$this->loader->add_action( 'wppr_settings_section_upsell', $plugin_admin, 'settings_section_upsell', 10, 1 );
$this->loader->add_action( 'after_setup_theme', $plugin_admin, 'add_image_size' );
$this->loader->add_action( 'wp_ajax_get_categories', $plugin_admin, 'get_categories' );
$this->loader->add_action( 'activated_plugin', $plugin_admin, 'on_activation', 10, 1 );
$this->loader->add_action( 'admin_init', $plugin_admin, 'on_activation', 10, 1 );

$plugin_editor = new WPPR_Editor( $this->get_plugin_name(), $this->get_version() );
$this->loader->add_action( 'add_meta_boxes', $plugin_editor, 'set_editor' );
Expand Down
1 change: 1 addition & 0 deletions includes/public/layouts/comment-rating-star-tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
}
?>
</div>
<div class="wppr-clear"></div>
</div>
<?php
}
Expand Down
7 changes: 4 additions & 3 deletions includes/public/layouts/widget/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@
if ( $instance['show_image'] == true && ! empty( $product_image ) ) {
?>
<div class="cwp_rev_image wppr-col">
<img src="<?php echo $product_image; ?>"
alt="<?php echo $review_object->get_name(); ?>">
<a href="<?php echo get_the_permalink( $review['ID'] ); ?>" class="wppr-col" title="<?php echo $review_object->get_name(); ?>" rel="noopener">
<img src="<?php echo $product_image; ?>" alt="<?php echo $review_object->get_name(); ?>">
</a>
</div>
<?php
$wppr_image = true;
}
?>

<div class="wppr-post-title wppr-col<?php echo ( $wppr_image ) ? '' : ' wppr-no-image'; ?>">
<a href="<?php echo get_the_permalink( $review['ID'] ); ?>" class="wppr-col" title="<?php echo $review_object->get_name(); ?>">
<a href="<?php echo get_the_permalink( $review['ID'] ); ?>" class="wppr-col" title="<?php echo $review_object->get_name(); ?>" rel="noopener">
<?php echo $product_title_display; ?>
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wp-product-review",
"version": "3.7.4",
"version": "3.7.5",
"description": "WP Product Review WordPress plugin.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions wp-product-review.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Plugin Name: WP Product Review Lite
* Plugin URI: https://themeisle.com/plugins/wp-product-review/
* Description: The highest rated and most complete review plugin, now with rich snippets support. Easily turn your basic posts into in-depth reviews.
* Version: 3.7.4
* Version: 3.7.5
* Author: ThemeIsle
* Author URI: https://themeisle.com/
* Requires at least: 3.5
Expand Down Expand Up @@ -66,7 +66,7 @@ function deactivate_wppr() {
*/
function run_wppr() {

define( 'WPPR_LITE_VERSION', '3.7.4' );
define( 'WPPR_LITE_VERSION', '3.7.5' );
define( 'WPPR_PATH', dirname( __FILE__ ) );
define( 'WPPR_SLUG', 'wppr' );
define( 'WPPR_UPSELL_LINK', 'https://themeisle.com/plugins/wp-product-review/' );
Expand Down
1 change: 1 addition & 0 deletions wpml-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<wpml-config> <admin-texts> <key name="cwppos_options"> <key name="cwppos_pros_text" /> <key name="cwppos_cons_text" /> </key> </admin-texts> </wpml-config>

0 comments on commit d102279

Please sign in to comment.