Skip to content

Commit

Permalink
Merge branch 'release/8.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
BracketSpaceWorker committed Nov 19, 2021
2 parents 92d9614 + 0e956eb commit fdde863
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
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.5
* Version: 8.0.6
* License: GPL3
* Text Domain: notification
* Domain Path: /languages
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: notification, bracketspace, Kubitomakita, tomaszadamowicz, insejn,
Tags: notification, notify, alert, email, mail, webhook, API, developer, framework
Requires at least: 4.9
Tested up to: 5.8
Stable tag: 8.0.5
Stable tag: 8.0.6
Requires PHP: 7.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -295,6 +295,12 @@ Yes, just activate the debug log in the DEBUGGING section of the plugin settings

== Changelog ==

= 8.0.6 =

* [Fixed] Extension activation notice link.
* [Fixed] Extension activation process.
* [Fixed] Incorrect empty merge tag cleaning which was misreading JSON format.

= 8.0.5 =

* [Changed] Updated PHP dependencies.
Expand Down
2 changes: 1 addition & 1 deletion resources/templates/extension/activation-error.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
?>

<div class="error">
<p><?php $the_esc( 'message' ); ?></p>
<p><?php echo wp_kses_post( $get( 'message' ) ); ?></p>
<ul style="list-style: disc; padding-left: 20px;">
<?php foreach ( $get( 'extensions' ) as $extension ) : ?>
<li><?php echo esc_html( $extension ); ?></li>
Expand Down
2 changes: 1 addition & 1 deletion resources/templates/extension/extension-box-premium.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</div>
<form class="plugin-card-bottom" action="<?php echo esc_attr( admin_url( 'admin-post.php' ) ); ?>" method="post">
<input type="hidden" name="extension" value="<?php echo esc_attr( $ext['slug'] ); ?>">
<?php wp_nonce_field( 'activate_extension_' . $ext['slug'] ); ?>
<?php wp_nonce_field( 'activate_extension_' . wp_unslash( sanitize_key( $ext['slug'] ?? '' ) ) ); ?>
<?php if ( empty( $license ) ) : ?>
<input type="hidden" name="action" value="notification_activate_extension">
<div class="column-license"><input type="text" name="license-key" placeholder="<?php esc_attr_e( 'License key', 'notification' ); ?>" class="widefat"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function resolve( $value, Triggerable $trigger ) {
* @return string
*/
public static function clear( $value ) {
return preg_replace( '/(?<!\!)\{(?:[^{}])*\}/', '', $value );
return preg_replace( '/(?<!\!)\{(?:[^{}\s\"\'])*\}/', '', $value );
}

}

0 comments on commit fdde863

Please sign in to comment.