Skip to content

Commit

Permalink
Merge branch 'release/8.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
BracketSpaceWorker committed Nov 16, 2021
2 parents ac20c43 + 0d8c246 commit d634e0e
Show file tree
Hide file tree
Showing 49 changed files with 472 additions and 265 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
*/
class HTML {

/**
* Constructor
*/
public function __construct() {
notification_deprecated_class( __CLASS__, '8.0.4' );
}

/**
* HTML field
*
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"micropackage/cache": "^1.0",
"micropackage/dochooks": "1.0.2",
"micropackage/filesystem": "^1.1",
"micropackage/requirements": "^1.0",
"micropackage/requirements": "^1.1",
"micropackage/templates": "^1.1"
},
"require-dev": {
Expand All @@ -24,7 +24,8 @@
"roots/wordpress": "*",
"szepeviktor/phpstan-wordpress": "^0.7.2",
"wp-coding-standards/wpcs": "^2.0",
"wp-phpunit/wp-phpunit": "^5.8"
"wp-phpunit/wp-phpunit": "^5.8",
"yoast/phpunit-polyfills": "^1.0"
},
"config": {
"optimize-autoloader": true,
Expand Down
126 changes: 95 additions & 31 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.3
* Version: 8.0.4
* License: GPL3
* Text Domain: notification
* Domain Path: /languages
Expand Down
10 changes: 9 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.3
Stable tag: 8.0.4
Requires PHP: 7.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -295,6 +295,14 @@ Yes, just activate the debug log in the DEBUGGING section of the plugin settings

== Changelog ==

= 8.0.4 =

* [Changed] Updated PHP dependencies.
* [Changed] Extension license notice is now printed once and covers all the plugins.
* [Changed] Some of the core fields like Import/Export now have own setting classes.
* [Fixed] Remaining template variable escaping.
* [Removed] HTML Settings field, introduced in v8.0.3. Now it's required to create purpose-specific field classes.

= 8.0.3 =

* [Added] HTML Settings field.
Expand Down
9 changes: 5 additions & 4 deletions resources/templates/box.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@
*
* @var callable(string $var_name, string $default=): mixed $get Variable getter.
* @var callable(string $var_name, string $default=): void $the Variable printer.
* @var callable(string $var_name, string $default=): void $the_esc Escaped variable printer.
* @var BracketSpace\Notification\Dependencies\Micropackage\Templates\Template $this Template instance.
*/

?>

<div id="<?php $the( 'id' ); ?>" class="postbox <?php echo ( ! $get( 'open' ) && $get( 'active' ) ) ? 'closed' : ''; ?>" data-nt-carrier <?php echo ( ! $get( 'active' ) ) ? 'data-nt-hidden' : ''; ?>>
<div id="<?php $the_esc( 'id' ); ?>" class="postbox <?php echo ( ! $get( 'open' ) && $get( 'active' ) ) ? 'closed' : ''; ?>" data-nt-carrier <?php echo ( ! $get( 'active' ) ) ? 'data-nt-hidden' : ''; ?>>
<div class="switch-container">
<input id="carrier-toggle-<?php $the( 'id' ); ?>" type="checkbox" name="<?php $the( 'name' ); ?>" value="1" <?php checked( ( $get( 'open' ) || ! $get( 'active' ) ), true ); ?> data-nt-carrier-input-switch />
<label for="carrier-toggle-<?php $the( 'id' ); ?>" class="switch">
<input id="carrier-toggle-<?php $the_esc( 'id' ); ?>" type="checkbox" name="<?php $the_esc( 'name' ); ?>" value="1" <?php checked( ( $get( 'open' ) || ! $get( 'active' ) ), true ); ?> data-nt-carrier-input-switch />
<label for="carrier-toggle-<?php $the_esc( 'id' ); ?>" class="switch">
<div></div>
</label>
<button type="button" data-nt-carrier-remove></button>
</div>
<h2 class="hndle"><span><?php $the( 'title' ); ?></span></h2>
<h2 class="hndle"><span><?php $the_esc( 'title' ); ?></span></h2>
<div class="inside">
<?php do_action_deprecated( 'notification/notification/box/pre', [ $this ], '6.0.0', 'notification/carrier/box/pre' ); ?>
<?php do_action( 'notification/carrier/box/pre', $this ); ?>
Expand Down
1 change: 1 addition & 0 deletions resources/templates/carriers/widget-add.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @var callable(string $var_name, string $default=): mixed $get Variable getter.
* @var callable(string $var_name, string $default=): void $the Variable printer.
* @var callable(string $var_name, string $default=): void $the_esc Escaped variable printer.
* @var BracketSpace\Notification\Dependencies\Micropackage\Templates\Template $this Template instance.
*/

Expand Down
1 change: 1 addition & 0 deletions resources/templates/debug/error-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @var callable(string $var_name, string $default=): mixed $get Variable getter.
* @var callable(string $var_name, string $default=): void $the Variable printer.
* @var callable(string $var_name, string $default=): void $the_esc Escaped variable printer.
* @var BracketSpace\Notification\Dependencies\Micropackage\Templates\Template $this Template instance.
*/

Expand Down
1 change: 1 addition & 0 deletions resources/templates/debug/notification-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @var callable(string $var_name, string $default=): mixed $get Variable getter.
* @var callable(string $var_name, string $default=): void $the Variable printer.
* @var callable(string $var_name, string $default=): void $the_esc Escaped variable printer.
* @var BracketSpace\Notification\Dependencies\Micropackage\Templates\Template $this Template instance.
*/

Expand Down
1 change: 1 addition & 0 deletions resources/templates/debug/pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
* @var callable(string $var_name, string $default=): mixed $get Variable getter.
* @var callable(string $var_name, string $default=): void $the Variable printer.
* @var callable(string $var_name, string $default=): void $the_esc Escaped variable printer.
* @var BracketSpace\Notification\Dependencies\Micropackage\Templates\Template $this Template instance.
*/

Expand Down
Loading

0 comments on commit d634e0e

Please sign in to comment.