Skip to content

Commit

Permalink
Merge branch 'release/9.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
BracketSpaceWorker committed Oct 3, 2024
2 parents a257f50 + 21c7965 commit bffd4aa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
name: ${{ steps.vars.outputs.package-name }}
path: .
- name: Release
uses: softprops/action-gh-release@v4
uses: softprops/action-gh-release@v2
with:
body_path: changelog.txt
files: ${{ steps.vars.outputs.package-name }}.zip
Expand Down
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: 9.0.0
* Version: 9.0.1
* Requires PHP: 7.4
* Requires at least: 5.8
* License: GPL3
Expand Down
14 changes: 6 additions & 8 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.2
Stable tag: 9.0.0
Tested up to: 6.6
Stable tag: 9.0.1
Requires PHP: 7.4
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -59,12 +59,6 @@ How easy extending the Notification plugin is? Let's see:

[See the developer documentation](https://docs.bracketspace.com/notification/developer/general) if you don't believe us.

= DEFAULT CARRIERS =

* Email
* Webhook
* Webhook JSON

= DEFAULT RECIPIENTS =

The plugin comes with few registered by default recipient types for Email Carrier:
Expand Down Expand Up @@ -173,6 +167,7 @@ Along the Trigger specific Merge Tags, you can use the below anywhere:

= AWESOME EXTENSIONS =

* [Webhooks](https://bracketspace.com/downloads/notification-webhooks/) - send and receive Webhooks
* [Conditionals](https://bracketspace.com/downloads/notification-conditionals/) - send Notifications in certain conditions
* [Custom Fields](https://bracketspace.com/downloads/notification-custom-fields/) - use any meta value in your Notifications
* [Slack](https://bracketspace.com/downloads/notification-slack/) - post messages to Slack channel
Expand Down Expand Up @@ -302,6 +297,9 @@ Yes! We're offering a [custom plugin development](https://bracketspace.com/custo

== Changelog ==

= 9.0.1 =
* [Changed] Notification data is now kept in the wp_posts table for easier reverting to previous version.

= 9.0.0 =

**Compatibility Breaking Changes**
Expand Down
5 changes: 4 additions & 1 deletion src/Database/NotificationDatabaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ public static function upsert(Notification $notification)
'ID' => $post === null ? 0 : $post->ID,
'post_title' => $notification->getTitle(),
'post_name' => $notification->getHash(),
'post_content' => '',
/**
* @todo Remove backward compatibility content save.
*/
'post_content' => $notification->to('json'),
'post_status' => $notification->isEnabled() ? 'publish' : 'draft',
'post_type' => 'notification',
]
Expand Down

0 comments on commit bffd4aa

Please sign in to comment.