Skip to content

Commit

Permalink
Merge branch 'release/8.0.15'
Browse files Browse the repository at this point in the history
  • Loading branch information
BracketSpaceWorker committed Apr 5, 2023
2 parents 3f1cc03 + 0f1ac8b commit 2540ae4
Show file tree
Hide file tree
Showing 19 changed files with 106 additions and 44 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"require": {
"php": "^7.0",
"composer-runtime-api": "^2.0",
"enshrined/svg-sanitize": "^0.15.0",
"enshrined/svg-sanitize": "^0.16.0",
"micropackage/ajax": "^1.0",
"micropackage/cache": "^1.0",
"micropackage/dochooks": "1.0.2",
Expand Down
83 changes: 72 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Customisable email and webhook notifications with powerful developer friendly API for custom triggers and notifications. Send alerts easily.
* Author: BracketSpace
* Author URI: https://bracketspace.com
* Version: 8.0.14
* Version: 8.0.15
* License: GPL3
* Text Domain: notification
* Domain Path: /languages
Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: notification, bracketspace, Kubitomakita, tomaszadamowicz, insejn, mateuszgbiorczyk
Tags: notification, notify, alert, email, mail, webhook, API, developer, framework
Requires at least: 4.9
Tested up to: 6.1
Stable tag: 8.0.14
Tested up to: 6.2
Stable tag: 8.0.15
Requires PHP: 7.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -302,6 +302,12 @@ Yes! We're offering a [custom plugin development](https://bracketspace.com/custo

== Changelog ==

= 8.0.15 =

* [Fixed] Comment merge tags rendering empty values.
* [Changed] Development dependencies got some security patches.
* [Changed] `notification/merge_tag/value/resolve` now accepts unsanitized value.

= 8.0.14 =

* [Fixed] Outdated dochoooks compatibility file, causing a fatal error while adding new post in some environments.
Expand Down
2 changes: 1 addition & 1 deletion src/Abstracts/MergeTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function resolve() {

$this->resolved = true;

$this->value = apply_filters( 'notification/merge_tag/value/resolve', $this->sanitize( $value ) );
$this->value = apply_filters( 'notification/merge_tag/value/resolve', $this->sanitize( $value ), $value );

return $this->get_value();

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentActionApprove.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentActionDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentActionSpam.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentActionTrash.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentAuthorIP.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentAuthorUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentAuthorUserAgent.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentContentHtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentID.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentIsReply.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$comment_type_name = WpObjectHelper::get_comment_type_name( $this->comment_type );

Expand Down
2 changes: 1 addition & 1 deletion src/Defaults/MergeTag/Comment/CommentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $params = [] ) {
$this->comment_type = $params['comment_type'];
}

$this->set_trigger_prop( $params['property_name'] ?? $this->comment_type );
$this->set_trigger_prop( $params['property_name'] ?? 'comment' );

$args = wp_parse_args(
$params,
Expand Down
25 changes: 10 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2842,9 +2842,9 @@ decamelize@^1.1.0, decamelize@^1.1.2, decamelize@^1.2.0:
integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=

decode-uri-component@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545"
integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=
version "0.2.2"
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9"
integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==

decompress-response@^3.2.0, decompress-response@^3.3.0:
version "3.3.0"
Expand Down Expand Up @@ -5130,9 +5130,9 @@ json2php@^0.0.4:
integrity sha1-a9haHdpqXdfpECK7JEA8wbfC7jQ=

json5@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe"
integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==
version "1.0.2"
resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593"
integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==
dependencies:
minimist "^1.2.0"

Expand Down Expand Up @@ -5655,12 +5655,7 @@ minimist-options@4.1.0:
is-plain-obj "^1.1.0"
kind-of "^6.0.3"

minimist@^1.1.3, minimist@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==

minimist@^1.2.0:
minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5:
version "1.2.7"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18"
integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
Expand Down Expand Up @@ -6755,9 +6750,9 @@ qs@^6.4.0:
integrity sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==

qs@~6.5.2:
version "6.5.2"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==
version "6.5.3"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad"
integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==

query-string@^4.1.0:
version "4.3.4"
Expand Down

0 comments on commit 2540ae4

Please sign in to comment.