Skip to content

Commit

Permalink
Merge pull request #158 from JWardee/v2.0.4
Browse files Browse the repository at this point in the history
v2.0.4
  • Loading branch information
JWardee authored Jun 25, 2022
2 parents 418b960 + faf6aab commit 57d6fc0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion WpMailCatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Domain Path: /languages
Description: Logging your mail will stop you from ever losing your emails again! This fast, lightweight plugin (under 140kb in size!) is also useful for debugging or backing up your messages.
Author: James Ward
Version: 2.0.3
Version: 2.0.4
Author URI: https://jamesward.io
Donate link: https://paypal.me/jamesmward
*/
Expand Down
2 changes: 1 addition & 1 deletion build/grunt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "WpMailCatcher",
"version": "2.0.3",
"version": "2.0.4",
"lang_po_directory": "../../languages",
"build_directory": "./..",
"dist_directory": "../../assets",
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: mail logging, email log, email logger, logging, email logging, mail, crm
Requires at least: 4.7
Tested up to: 6.0
Requires PHP: 7.2
Stable tag: 2.0.3
Stable tag: 2.0.4
License: GNU General Public License v3.0
License URI: https://raw.githubusercontent.com/JWardee/wp-mail-catcher/master/LICENSE
Donate link: https://paypal.me/jamesmward
Expand Down Expand Up @@ -94,6 +94,10 @@ Great! Please leave a note in our (GitHub tracker)

== Changelog ==

= 2.0.4 =

- Fix: Resolved memory leak when saving a new log

= 2.0.3 =

- Fix: Auto deleting clearing all logs
Expand Down
4 changes: 2 additions & 2 deletions src/Loggers/LogHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function saveMail($args, $transformFunc)
$args['to'] = [];
}

do_action(GeneralHelper::$actionNameSpace . '_mail_success', Logs::getFirst(['id' => $this->id]));
do_action(GeneralHelper::$actionNameSpace . '_mail_success', Logs::getFirst(['post__in' => $this->id]));

return $args;
}
Expand Down Expand Up @@ -63,7 +63,7 @@ public function saveError($error)

Cache::flush();

do_action(GeneralHelper::$actionNameSpace . '_mail_failed', Logs::getFirst(['id' => $this->id]));
do_action(GeneralHelper::$actionNameSpace . '_mail_failed', Logs::getFirst(['post__in' => $this->id]));
}

public function saveIsHtml($contentType)
Expand Down

0 comments on commit 57d6fc0

Please sign in to comment.