Skip to content

Commit

Permalink
v5.5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
saad-siddique committed Feb 20, 2024
1 parent 4c16672 commit f173a49
Show file tree
Hide file tree
Showing 22 changed files with 686 additions and 605 deletions.
1,054 changes: 537 additions & 517 deletions languages/uncanny-automator.pot

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Uncanny Automator – Automate everything with the #1 no-code automation and integration plugin
# Uncanny Automator – Automate everything with the #1 automation, integration & webhooks plugin

**Contributors:** uncannyautomator, uncannyowl, smub \
**Tags:** automation, google sheets, openai, learndash, webhooks, woocommerce, wpforms, twitter, facebook, whatsapp, buddyboss, tutor lms \
**Requires at least:** 5.4 \
**Tested up to:** 6.4.2 \
**Tested up to:** 6.4.3 \
**Requires PHP:** 7.0 \
**Stable tag:** 5.5 \
**Stable tag:** 5.5.0.1 \
**License:** GPLv3 \
**License URI:** https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -367,7 +367,15 @@ We're a Toronto-based WordPress company specializing in elearning and automation

## Changelog

### 5.5 [2024-01-24]
### 5.5.0.1 [2024-02-20]

**Fixed:**

* Groundhogg - Get tags functionality not working as expected #4398
* PHP Notice - Function `wp_cache_flush_group` was called incorrectly #4383
* Plugin cannot be deleted on some sites #4414

### 5.5 [2024-01-25]

**Added:**

Expand All @@ -385,7 +393,7 @@ We're a Toronto-based WordPress company specializing in elearning and automation

* ActiveCampaign - Tag actions - Added support to pass Tag names #4285
* LearnDash - Mark complete actions - Support for future `learndash_process_mark_complete` function updates #4343
* MailPoet - Actions will now complete with errors if an issue occurrs #4251
* MailPoet - Actions will now complete with errors if an issue occurs #4251
* OpenAI - Deprecated models replaced in Recipe UI #4333
* Recipe logs - Integration icons are now listed once per log entry if multiple triggers or actions of the same integration are part of recipe #4296
* WordPress - "Post content" token renamed to "Post content (raw)" #4357
Expand Down
18 changes: 13 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== Uncanny Automator – Automate everything with the #1 no-code automation and integration plugin ===
=== Uncanny Automator – Automate everything with the #1 automation, integration & webhooks plugin ===
Contributors: uncannyautomator, uncannyowl, smub
Tags: automation, google sheets, openai, learndash, webhooks, woocommerce, wpforms, twitter, facebook, whatsapp, buddyboss, tutor lms
Requires at least: 5.4
Tested up to: 6.4.2
Tested up to: 6.4.3
Requires PHP: 7.0
Stable tag: 5.5
Stable tag: 5.5.0.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -342,7 +342,15 @@ We're a Toronto-based WordPress company specializing in elearning and automation

== Changelog ==

= 5.5 [2024-01-24] =
= 5.5.0.1 [2024-02-20] =

**Fixed:**

* Groundhogg - Get tags functionality not working as expected #4398
* PHP Notice - Function `wp_cache_flush_group` was called incorrectly #4383
* Plugin cannot be deleted on some sites #4414

= 5.5 [2024-01-25] =

**Added:**

Expand All @@ -360,7 +368,7 @@ We're a Toronto-based WordPress company specializing in elearning and automation

* ActiveCampaign - Tag actions - Added support to pass Tag names #4285
* LearnDash - Mark complete actions - Support for future `learndash_process_mark_complete` function updates #4343
* MailPoet - Actions will now complete with errors if an issue occurrs #4251
* MailPoet - Actions will now complete with errors if an issue occurs #4251
* OpenAI - Deprecated models replaced in Recipe UI #4333
* Recipe logs - Integration icons are now listed once per log entry if multiple triggers or actions of the same integration are part of recipe #4296
* WordPress - "Post content" token renamed to "Post content (raw)" #4357
Expand Down
2 changes: 1 addition & 1 deletion src/assets/backend/dist/bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assets/backend/dist/bundle.min.js.map

Large diffs are not rendered by default.

68 changes: 38 additions & 30 deletions src/core/includes/pro-items-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,11 @@ function automator_pro_items_list() {
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Subscribe the user to {{a forum}}", 'uncanny-automator' ),
),
array(
/* translators: Action - BuddyBoss */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Unsubscribe the user from {{a forum}}", 'uncanny-automator' ),
),
),
),
'BP' => array(
Expand Down Expand Up @@ -835,6 +840,11 @@ function automator_pro_items_list() {
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Send a private message to a specific user", 'uncanny-automator' ),
),
array(
/* translators: Action - BuddyPress */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Unsubscribe the user from {{a forum}}", 'uncanny-automator' ),
),
),
),
'CF' => array(
Expand Down Expand Up @@ -971,6 +981,12 @@ function automator_pro_items_list() {
'name' => __( "{{A product}} is purchased with {{a discount code}}", 'uncanny-automator' ),
'type' => 'logged-in',
),
array(
/* translators: Anonymous trigger - Easy Digital Downloads */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "{{A file}} is downloaded", 'uncanny-automator' ),
'type' => 'anonymous',
),
array(
/* translators: Logged-in trigger - EDD – Recurring Payments */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
Expand All @@ -986,9 +1002,14 @@ function automator_pro_items_list() {
),
'actions' => array(
array(
/* translators: Action - EDD – Recurring Payments */
/* translators: Action - Easy Digital Downloads */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Delete a customer by {{email}}", 'uncanny-automator' ),
),
array(
/* translators: Action - Easy Digital Downloads */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Delete a customer", 'uncanny-automator' ),
'name' => __( "Delete a customer by {{ID}}", 'uncanny-automator' ),
),
array(
/* translators: Action - EDD – Recurring Payments */
Expand Down Expand Up @@ -1893,6 +1914,11 @@ function automator_pro_items_list() {
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Add the user to {{a group}}", 'uncanny-automator' ),
),
array(
/* translators: Action - LearnDash */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Extend the user's access to {{a course}} by {{a number of}} days", 'uncanny-automator' ),
),
array(
/* translators: Action - LearnDash */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
Expand Down Expand Up @@ -2206,24 +2232,6 @@ function automator_pro_items_list() {
'name' => 'MemberPress',
'pro_only' => 'no',
'triggers' => array(
array(
/* translators: Logged-in trigger - MemberPress */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "A user's membership to {{a specific product}} expires", 'uncanny-automator' ),
'type' => 'logged-in',
),
array(
/* translators: Logged-in trigger - MemberPress */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "A user's membership to {{a specific product}} is cancelled", 'uncanny-automator' ),
'type' => 'logged-in',
),
array(
/* translators: Logged-in trigger - MemberPress */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "A user's membership to {{a specific product}} is paused", 'uncanny-automator' ),
'type' => 'logged-in',
),
array(
/* translators: Logged-in trigger - MemberPress */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
Expand Down Expand Up @@ -2284,16 +2292,6 @@ function automator_pro_items_list() {
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Remove the user from {{a membership}}", 'uncanny-automator' ),
),
array(
/* translators: Action - MemberPress */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Add the user to {{a membership}}", 'uncanny-automator' ),
),
array(
/* translators: Action - MemberPress */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Remove the user from {{a membership}}", 'uncanny-automator' ),
),
),
),
'MPC' => array(
Expand Down Expand Up @@ -3278,6 +3276,11 @@ function automator_pro_items_list() {
),
),
'actions' => array(
array(
/* translators: Action - WooCommerce */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Add {{a note}} to an order", 'uncanny-automator' ),
),
array(
/* translators: Action - WooCommerce */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
Expand Down Expand Up @@ -3343,6 +3346,11 @@ function automator_pro_items_list() {
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Extend a user's subscription to {{a specific product variation}} of {{a specific product}} by {{a number of days}}", 'uncanny-automator' ),
),
array(
/* translators: Action - WooCommerce Subscriptions */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
'name' => __( "Extend the user’s next subscription renewal date to {{a specific product}} by {{a number of days}}", 'uncanny-automator' ),
),
array(
/* translators: Action - WooCommerce Subscriptions */
// phpcs:ignore Squiz.Strings.DoubleQuoteUsage.NotRequired
Expand Down
7 changes: 4 additions & 3 deletions src/core/lib/helpers/class-automator-cache-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,15 @@ public function remove( $key, $group = 'automator' ) {
*
*/
public function remove_all() {
if ( function_exists( 'wp_cache_flush_group' ) ) {
wp_cache_flush_group( 'automator' );
}

$this->remove( 'automator_integration_directories_loaded' );
$this->remove( 'automator_get_all_integrations' );
$this->remove( 'automator_actionified_triggers' );
$this->remove( $this->recipes_data );
$this->remove( 'get_recipe_type' );

automator_cache_delete_group( 'automator' );

do_action( 'automator_cache_remove_all' );
}

Expand Down
13 changes: 9 additions & 4 deletions src/global-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -688,25 +688,30 @@ function automator_add_settings_error( $setting = '', $code = '', $message = '',
* @return void
*/
function automator_cache_delete_group( $group = 'automator' ) {
if ( function_exists( 'wp_cache_flush_group' ) ) {
wp_cache_flush_group( $group );
}

$purge_group = true;

// LiteSpeed Cache
if ( class_exists( '\LiteSpeed\Purge' ) && method_exists( '\LiteSpeed\Purge', 'purge_all' ) ) {
// Purge all LS Cache & Object cache
\LiteSpeed\Purge::purge_all( 'Called by Automator' );
$purge_group = false; // Since all cache is already cleared
}

// W3 Total Cache
if ( function_exists( 'w3tc_flush_all' ) ) {
w3tc_flush_all();
$purge_group = false; // Since all cache is already cleared
}

if ( function_exists( 'wp_cache_flush_group' ) && $purge_group ) {
wp_cache_flush_group( $group );
}

/** @type WP_Object_Cache $wp_object_cache */
global $wp_object_cache;

$cache = $wp_object_cache->cache;
$cache = $wp_object_cache->cache ?? array();

if ( isset( $cache[ $group ] ) ) {
unset( $cache[ $group ] );
Expand Down
10 changes: 2 additions & 8 deletions src/integrations/groundhogg/actions/gh-addtag.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,16 @@ public function define_action() {
* @return array
*/
public function options_callback() {
$tags = new Tags();

$tag_options = array();
foreach ( $tags->get_tags() as $tag ) {
$tag_options[ $tag->tag_id ] = $tag->tag_name;
}

$options = array(
'option_code' => $this->action_meta,
'label' => esc_attr__( 'Tags', 'uncanny-automator' ),
'input_type' => 'select',
'required' => true,
'options' => $tag_options,
'options' => Groundhogg_Helpers::get_tag_options(),
);

return Automator()->utilities->keep_order_of_options( array( 'options' => array( $options ) ) );
return array( 'options' => array( $options ) );
}

/**
Expand Down
11 changes: 2 additions & 9 deletions src/integrations/groundhogg/actions/gh-removetag.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Uncanny_Automator;

use Groundhogg\DB\Tags;
use Groundhogg\Plugin;

/**
Expand Down Expand Up @@ -64,22 +63,16 @@ public function define_action() {
* @return array
*/
public function options_callback() {
$tags = new Tags();

$tag_options = array();
foreach ( $tags->get_tags() as $tag ) {
$tag_options[ $tag->tag_id ] = $tag->tag_name;
}

$options = array(
'option_code' => $this->action_meta,
'label' => esc_attr__( 'Tags', 'uncanny-automator' ),
'input_type' => 'select',
'required' => true,
'options' => $tag_options,
'options' => Groundhogg_Helpers::get_tag_options(),
);

return Automator()->utilities->keep_order_of_options( array( 'options' => array( $options ) ) );
return array( 'options' => array( $options ) );
}

/**
Expand Down
44 changes: 44 additions & 0 deletions src/integrations/groundhogg/helpers/groundhogg-helpers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php

namespace Uncanny_Automator;

/**
* Class Groundhogg_Helpers
*
* @package Uncanny_Automator
*/
class Groundhogg_Helpers {

/**
* Get all tags.
*
* @return array|mixed|void
*/
public static function get_tag_options() {

$tags = array();
$options = array();

try {
$tags = \Groundhogg\get_db( 'tags' )->query( array() );
} catch ( \Error $e ) {
automator_log( $e->getMessage(), $tags, AUTOMATOR_DEBUG_MODE, 'groundhogg' );
} catch ( \Exception $e ) {
automator_log( $e->getMessage(), $tags, AUTOMATOR_DEBUG_MODE, 'groundhogg' );
}

if ( empty( $tags ) ) {
return $options;
}

foreach ( $tags as $tag ) {
$options[] = array(
'value' => $tag->tag_id,
'text' => $tag->tag_name,
);
}

return $options;
}

}
2 changes: 0 additions & 2 deletions src/integrations/groundhogg/helpers/index.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/recipe-ui/dist/bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/recipe-ui/dist/bundle.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions uncanny-automator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Domain Path: /languages
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Version: 5.5
* Version: 5.5.0.1
* Requires at least: 5.4
* Requires PHP: 7.0
*/
Expand All @@ -21,7 +21,7 @@
/*
* Specify Automator version.
*/
define( 'AUTOMATOR_PLUGIN_VERSION', '5.5' );
define( 'AUTOMATOR_PLUGIN_VERSION', '5.5.0.1' );
}

if ( ! defined( 'AUTOMATOR_BASE_FILE' ) ) {
Expand Down
Loading

0 comments on commit f173a49

Please sign in to comment.