Skip to content

Releases: BracketSpace/Notification

6.0.3

24 May 11:23
Compare
Choose a tag to compare
  • [Fixed] On/off switch in notifications table.
  • [Fixed] Duplicate feature.
  • [Fixed] Licensing.
  • [Changed] Notification trash link wording.

6.0.2

23 May 07:31
Compare
Choose a tag to compare
  • [Fixed] Error in admin notice while manipulating extension license.
  • [Fixed] Scripts and styles conditional loading.

6.0.0

21 May 09:28
Compare
Choose a tag to compare
  • [Fixed] Theme Update trigger errors on update.
  • [Added] Notification object as a wrapper for Notification Post.
  • [Added] notification_create_view function for seamless view creation.
  • [Added] notification/post/column/main action for notification edit screen addons.
  • [Added] notification_get_posts function.
  • [Added] Import and Export feature using JSON files.
  • [Added] Composer support with unified testing.
  • [Added] Merge Tags groups.
  • [Added] Notification Adapters - WordPress and JSON.
  • [Added] notification_ajax_handler function.
  • [Added] Ability to define Notifications programmatically.
  • [Added] JSON synchronization feature.
  • [Added] add_quick_merge_tag Trigger method.
  • [Added] Collapse option for plugin settings groups.
  • [Added] Common error log for all extensions, you can use notification_log function.
  • [Added] Post thumbnail URL and featured imager URL Merge Tags.
  • [Added] Comment content HTML merge tag.
  • [Added] Resolver API which allows to register more Merge Tag resolvers.
  • [Added] notification/should_send filter to hold off the whole Notification.
  • [Removed] Trigger usage tracking.
  • [Changed] PostData class has been removed in favor of Notification object and procedural functions.
  • [Changed] Admin Classes: MergeTags, Notifications, PostData, Recipients, Triggers has been removed and their content included in the Admin/PostType class.
  • [Changed] Notification data is now using single nonce field and additional data should be saved with notification/data/save action.
  • [Changed] Namespaces of Cron, Internationalization, License and Whitelabel classes.
  • [Changed] Native class autoloader to Composer autoloader.
  • [Changed] User recipients optimization with direct database calls.
  • [Changed] Notification (in "type" context) has been renamed to Carrier.
  • [Changed] The View object is not injected anymore to any Class, all use the notification_create_view function.
  • [Changed] ScreenHelp class has been renamed to Screen and render methods from PostType class has been moved to this new class.
  • [Changed] Notifications are now loaded on every page load and the Trigger action is not executing at all if no Notification is using it.
  • [Changed] Notifications doesn't have the trash anymore, the items are removed right away.
  • [Changed] On notification edit screen the editor styles are no longer applied.
  • [Changed] Carriers now have two step status - they can be either added to a Notification and be disabled at the same time.
  • [Changed] strip_shortcodes function to custom preg_replace for better stripping.
  • [Changed] Trigger storage now contains whole Notifications instead of just Carriers.

= Compatibility breaking changes =

Hooks - Some of the hooks names has been renamed for better consistency across the plugin. List of all changes:

  • notification/notification/pre-send -> notification/carrier/pre-send
  • notification/notification/sent -> notification/carrier/sent
  • notificaiton/notification/field/resolving -> notification/carrier/field/resolving
  • notification/value/strip_empty_mergetags -> notification/resolve/strip_empty_mergetags
  • notification/value/strip_shortcodes -> notification/carrier/field/value/strip_shortcodes
  • notificaiton/notification/field/resolved -> notification/carrier/field/value/resolved
  • notificaiton/merge_tag/value/resolved -> notification/merge_tag/value/resolved
  • notitication/admin/notifications/pre -> notification/admin/carriers/pre
  • notitication/admin/notifications -> notification/admin/carriers
  • notification/webhook/called/get -> notification/carrier/webhook/called/get
  • notification/webhook/called/post -> notification/carrier/webhook/called/post
  • notification/notification/box/pre -> notification/carrier/box/pre
  • notification/notification/box/post -> notification/carrier/box/post
  • notification/notification/box/field/pre -> notification/carrier/box/field/pre
  • notification/notification/box/field/post -> notification/carrier/box/field/post
  • notification/notification/form_fields/values -> notification/carrier/fields/values
  • notification/email/use_html_mime -> notification/carrier/email/use_html_mime
  • notification/email/recipients -> notification/carrier/email/recipients
  • notification/email/subject -> notification/carrier/email/subject
  • notification/email/message/pre -> notification/carrier/email/message/pre
  • notification/email/message/use_autop -> notification/carrier/email/message/use_autop
  • notification/email/message -> notification/carrier/email/message
  • notification/email/headers -> notification/carrier/email/headers
  • notification/email/attachments -> notification/carrier/email/attachments
  • notification/webhook/args -> notification/carrier/webhook/args
  • notification/webhook/args/$type -> notification/carrier/webhook/args/$type
  • notification/webhook/remote_args/get -> notification/carrier/webhook/remote_args/get
  • notification/webhook/remote_args/post -> notification/carrier/webhook/remote_args/post

Classes - Some of the classes or namespaces has been renamed or removed. List of all changes:

  • BracketSpace\Notification\Admin\MergeTags - removed
  • BracketSpace\Notification\Admin\Notifications - removed
  • BracketSpace\Notification\Admin\PostData - removed
  • BracketSpace\Notification\Admin\Recipients - removed
  • BracketSpace\Notification\Admin\Triggers - removed
  • BracketSpace\Notification\Admin\PostData - removed
  • BracketSpace\Notification\Tracking - removed
  • BracketSpace\Notification\Admin\BoxRenderer - removed
  • BracketSpace\Notification\Admin\FormRenderer - removed
  • BracketSpace\Notification\Admin\ScreenHelp - removed
  • BracketSpace\Notification\Admin\FieldsResolver - removed
  • BracketSpace\Notification\Abstracts\Notification -> BracketSpace\Notification\Abstracts\Carrier
  • BracketSpace\Notification\Defaults\Notification -> BracketSpace\Notification\Defaults\Carrier
  • BracketSpace\Notification\Admin\Cron -> BracketSpace\Notification\Core\Cron
  • BracketSpace\Notification\Internationalization -> BracketSpace\Notification\Core\Internationalization
  • BracketSpace\Notification\License -> BracketSpace\Notification\Core\License
  • BracketSpace\Notification\Whitelabel -> BracketSpace\Notification\Core\Whitelabel

Functions - Some of the functions has been renamed for better consistency across the plugin. List of all changes:

  • notification_is_new_notification -> notification_post_is_new
  • register_notification -> notification_register_carrier
  • notification_get_notifications -> notification_get_carriers
  • notification_get_single_notification -> notification_get_carrier
  • register_trigger -> notification_register_trigger
  • notification_get_single_recipient -> notification_get_recipient
  • notification_get_notification_recipients -> notification_get_carrier_recipients
  • notification_get_single_trigger -> notification_get_trigger
  • register_recipient -> notification_register_recipient

5.3.2

16 Dec 05:34
Compare
Choose a tag to compare
  • [Fixed] Double post notification called for post revisions.
  • [Fixed] Wrong wordpress setting slug caused the option to not be saved.
  • [Added] NOTIFICATION_VERSION constant.
  • [Added] remove_merge_tag trigger method.

5.3.1

14 Dec 09:28
Compare
Choose a tag to compare
  • [Added] Initial unit tests.
  • [Fixed] Comment replied trigger not called from wp-admin.

5.3.0

14 Dec 00:15
Compare
Choose a tag to compare
  • [Changed] Added parent class for user triggers.
  • [Changed] Added parent class for media triggers.
  • [Changed] PHP requirement to 5.6.
  • [Changed] Freemius updated to version 2.1.3.
  • [Changed] Uninstallation logic moved to the Freemius handler.
  • [Changed] Merge Tag validation now accepts empty values.
  • [Changed] Post Trigger postponing to avoid looping.
  • [Changed] Custom Fields postponing causing the loops, now it's in a separate integration class.
  • [Changed] Minimum WordPress version to 4.9.
  • [Changed] Plugin autoload function.
  • [Added] Global date, time and datetime merge tags for trigger execution date.
  • [Added] notification/scripts/allowed_hooks filter to control where the scripts are loaded.
  • [Added] Color Picker field.
  • [Added] Image field.
  • [Added] User role changed trigger.
  • [Added] Post scheduled trigger.
  • [Added] notification/scripts action.
  • [Added] Comment datetime merge tag.
  • [Added] Debug log.
  • [Added] Plugin triggers.
  • [Added] Theme triggers.
  • [Added] notification/data/save action.
  • [Added] Usage tracking. No data is tracked unless allowed.
  • [Fixed] Comment type check causing the comment triggers failing.
  • [Fixed] Postponing looping over itself.
  • [Fixed] Fatal error with Triggers select on certain conditions.
  • [Fixed] Date and Time merge tags giving values of 0.
  • [Fixed] User password reset request being called upon registration.
  • [Fixed] Timezone being ignored in some merge tags.

5.2.4

22 Sep 11:20
Compare
Choose a tag to compare
  • [Fixed] When Strip all shortcodes setting is disabled, the shortcodes are rendered.
  • [Fixed] Coding Standards.
  • [Fixed] Gutenberg JS Hooks conflict.
  • [Fixed] Bug when recipient types has been changed.
  • [Fixed] Every comment type being targeted in Comment trigger.
  • [Fixed] Used failed login datetime merge tag.
  • [Added] remove_action metod in Trigger class.
  • [Added] Option to allow unfiltered HTML in Email body, thanks to @martinellimarco.
  • [Added] Post content HTML tag, for unfiltered output.
  • [Added] Better JSON support for webhooks, if webhook is sent as JSON the default Content-Type header is added.
  • [Added] Support for merge tags and shortcodes in Webhook recipient field.
  • [Added] Disabled OP Cache requirement.

5.2.3

15 Jul 10:32
Compare
Choose a tag to compare
  • [Fixed] Duplicated meta for active notification type.
  • [Fixed] Post Title merge tag HTML entities, thanks to @freshjustin.
  • [Fixed] Problem with disabling active notification types when switching notification status, thanks to @freshjustin.
  • [Added] Notification duplicator to easly duplicate notifications.
  • [Added] notification/trigger/action/did action in Trigger class.
  • [Added] get_post_type method for PostTrigger.
  • [Added] notification/load/default/priority filter for registering default things.
  • [Added] user_IP Merge Tag for User loged in Trigger.
  • [Changed] Plugin initializes the default things on plugins_loaded action.

5.2.2

09 Jun 16:12
Compare
Choose a tag to compare
  • [Fixed] Post Updated Trigger postponing.
  • [Added] notificaiton/merge_tag/value/resolved filter.
  • [Added] post_sticky status Merge Tag only for Post.
  • [Added] Email From Name and From Email settings.
  • [Added] The story screen.
  • [Changed] Merge Tag resolver is now set via set_resolver method.
  • [Changed] PHP version requirement to 5.3.9.

5.2.1

23 May 17:16
Compare
Choose a tag to compare
  • [Fixed] Not existing post type.
  • [Fixed] Merge tag values are cleaned when Trigger is executed second time in the same run.
  • [Added] Post saved as a draft trigger.
  • [Added] notification_add_doc_hooks function for creating doc hooks handlers.
  • [Added] Classes to Settings sections.
  • [Added] Taxonomy term created trigger
  • [Added] Taxonomy term updated trigger
  • [Added] Taxonomy term deleted trigger
  • [Added] User login failed trigger.
  • [Added] User password reset request trigger.
  • [Added] User password change trigger.