Skip to content

Commit abc7618

Browse files
committed
Bump to v4.3
1 parent 662bd8e commit abc7618

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed
-151 KB
Loading

.wordpress-org/readme/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: dueclic
33
Tags: turbo smtp,turboSMTP,smtp,mail,email,phpmailer,mailer,wp mail,mail smtp,ssl
44
Requires at least: 4.0
55
Tested up to: 6.5
6-
Stable tag: 4.2
6+
Stable tag: 4.3
77
License: GPLv2 or later
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

@@ -29,6 +29,9 @@ turboSMTP’s official plugin for WordPress is a professional tool that delivers
2929

3030
== Changelog ==
3131

32+
= 4.3 =
33+
* fix percentage in case of missing data
34+
3235
= 4.2 =
3336
* Changed translations
3437
* Changed colors according to turboSMTP Dashboard

build/js/turbosmtp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
for (var i = 0; i < values.length; i++)
258258
total += values[i];
259259

260-
pct = Number((total / tot) * 100).toFixed(2);
260+
pct = (tot === 0 ? 0 : Number((total / tot) * 100)).toFixed(2);
261261

262262
var pct_part = pct.toString().split('.');
263263

dist/js/turbosmtp.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo-smtp-plugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Easily send emails from your WordPress blog using turboSMTP's services
66
* Author: dueclic
77
* Author URI: https://www.dueclic.com
8-
* Version: 4.2
8+
* Version: 4.3
99
* Tested up to: 6.5
1010
* Text Domain: turbosmtp
1111
* Domain Path: /languages/
@@ -210,7 +210,7 @@ function ts_enqueue_scripts() {
210210
);
211211

212212
if ( $screen != null && in_array( $screen->id, $turbo_admin_pages ) ) {
213-
wp_enqueue_style( 'ts-style-css', plugins_url( 'dist/css/turbosmtp.min.css', __FILE__ ), array(), '2.7' );
213+
wp_enqueue_style( 'ts-style-css', plugins_url( 'dist/css/turbosmtp.min.css', __FILE__ ), array(), '4.3' );
214214

215215
if ( $screen->id === "turbosmtp_page_ts-stats" ) {
216216

@@ -228,7 +228,7 @@ function ts_enqueue_scripts() {
228228
wp_register_script( 'ts-stat-js', plugins_url( 'dist/js/turbosmtp.min.js', __FILE__ ), array(
229229
'jquery',
230230
'jquery-ui-core'
231-
), '2.7', true );
231+
), '4.3', true );
232232
wp_localize_script( 'ts-stat-js', 'ts', array(
233233
'chart_ajax_url' => admin_url( 'admin-ajax.php?action=get_stats_chart' ),
234234
'i18n' => array(

0 commit comments

Comments
 (0)