Skip to content

Commit

Permalink
Merge pull request #494 from WPChill/3.2.2
Browse files Browse the repository at this point in the history
textdomain fix; version bump; changelog update
  • Loading branch information
razvanaldea89 authored Dec 19, 2024
2 parents ae4d6d8 + c5c76a1 commit 8a38a88
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
15 changes: 7 additions & 8 deletions admin/class-strong-testimonials-review.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ class Strong_Testimonials_Review {
private $slug = 'strong-testimonials';

public function __construct() {
add_action( 'init', array( $this, 'init' ) );
}

public function init() {
if ( ! is_admin() ) {
return;
}

$this->messages = array(
'notice' => esc_html__( "Hi there! Stoked to see you're using Strong Testimonials for a few days now - hope you like it! And if you do, please consider rating it. It would mean the world to us. Keep on rocking!", 'strong-testimonials' ),
Expand All @@ -20,14 +27,6 @@ public function __construct() {
$this->messages = wp_parse_args( $args['messages'], $this->messages );
}

add_action( 'init', array( $this, 'init' ) );
}

public function init() {
if ( ! is_admin() ) {
return;
}

$this->value = $this->value();

if ( $this->check() ) {
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
= 3.2.2 - 19.12.2024 -
- Fixed: Text domain loading

= 3.2.1 - 17.12.2024 -
- Changed: Disabled seasonal promotions notifications.
- Fixed: Javascript error in admin.
Expand Down
2 changes: 1 addition & 1 deletion includes/scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function wpmtst_scripts() {
'imagesloaded',
WPMTST_PUBLIC_URL . 'js/lib/imagesloaded/imagesloaded.pkgd.min.js',
array(),
'3.2.1',
WPMTST_VERSION,
true
);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "strong-testimonials",
"author": "WPChill",
"version": "3.2.1",
"version": "3.2.2",
"license": "GPL v3",
"scripts": {
"build": "cross-env NODE_ENV=production wp-scripts build --config webpack.config.js",
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: testimonials, testimonial slider, testimonial form, star ratings
Requires at least: 5.2
Requires PHP: 5.6
Tested up to: 6.7
Stable tag: 3.2.1
Stable tag: 3.2.2
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -199,6 +199,9 @@ No. If you already have testimonials in another plugin or theme, you will have t
8. View editor

== Changelog ==
= 3.2.2 - 19.12.2024 -
- Fixed: Text domain loading

= 3.2.1 - 17.12.2024 -
- Changed: Disabled seasonal promotions notifications.
- Fixed: Javascript error in admin.
Expand Down
4 changes: 2 additions & 2 deletions strong-testimonials.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Collect and display your testimonials or reviews.
* Author: WPChill
* Author URI: https://wpchill.com/
* Version: 3.2.1
* Version: 3.2.2
* Text Domain: strong-testimonials
* Domain Path: /languages
* Requires: 4.6 or higher
Expand Down Expand Up @@ -45,7 +45,7 @@
exit;
}

define( 'WPMTST_VERSION', '3.2.1' );
define( 'WPMTST_VERSION', '3.2.2' );

define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
Expand Down

0 comments on commit 8a38a88

Please sign in to comment.