Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textdomain fix; version bump; changelog update #494

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading