Skip to content

Commit

Permalink
Merge branch 'release/1.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hemberger committed Jan 25, 2021
2 parents b503252 + f245963 commit 3b10e44
Show file tree
Hide file tree
Showing 156 changed files with 4,649 additions and 844 deletions.
34 changes: 19 additions & 15 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,51 +1,55 @@
# Changelog

#### 1.3.3 (4/2/18)
## 1.4.0 (1/25/21)
* Fixed: Added permission_callback to all registered REST API routes.
* Changed: Updated dependencies.

## 1.3.3 (4/2/18)
* Fixed: Undefined variable when sending notifications causing form to hang in some scenarios.
* Fixed: Properly chain ajax fail for debugging.

#### 1.3.2 (3/30/18)
## 1.3.2 (3/30/18)
* Added: Force equal height fields when inline is true.
* Fixed: Undefined variable in register form.
* Fixed: first_name_label default if last_name field is showing.

#### 1.3.1 (1/31/18)
## 1.3.1 (1/31/18)
* Fixed: Password strength script not being loaded on registration forms.

#### 1.3.0 (11/16/17)
## 1.3.0 (11/16/17)
* Added: Event Organiser Pro integration to send Active Campaign data via Booking forms. Set list IDs via 'AC List IDs' and tags via 'AC Tags' taxonomy metaboxes.

#### 1.2.4 (10/31/17)
## 1.2.4 (10/31/17)
* Fixed: Allow #hash in form redirect.

#### 1.2.3 (10/12/17)
## 1.2.3 (10/12/17)
* Fixed: Align labels to the left, so Mai Pro sections with centered content won't center labels.

#### 1.2.2 (10/12/17)
## 1.2.2 (10/12/17)
* Added: Included updater script.

#### 1.2.1 (10/12/17)
## 1.2.1 (10/12/17)
* Fixed: Scripts were not loading when using form in a Gravity Forms confirmation.

#### 1.2.0
## 1.2.0
* Changed: Form titles no longer show by default. You have to specify the title="Some Title" in the shortcode parameters now.

#### 1.1.4
## 1.1.4
* Fixed: wp_set_current_user() after wp_signon() to ensure use is logged in fully

#### 1.1.3
## 1.1.3
* Changed: Allow password_strength parameter in membership form

#### 1.1.2
## 1.1.2
* Fixed: empty first name label when logged in and viewing [wampum_membership_form]

#### 1.1.1
## 1.1.1
* Fixed: unexpected capitalization of Plan_id parameter on Instructions section of the settings page

#### 1.1.0
## 1.1.0
* Added: Active Campaign support via new settings page
* Changed: Full rebuild with new Wampum_Form() class to build forms
* Changed: Drop Sharpspring Support until reintegration

#### 1.0.0
## 1.0.0
* Launch
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require": {
"yahnis-elsts/plugin-update-checker": "^4.10",
"activecampaign/api-php": ">2.0.0"
}
}
107 changes: 107 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 39 additions & 26 deletions includes/class-submissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,72 +59,85 @@ function register_rest_endpoints() {
* *** */

register_rest_route( 'wampum/v1', '/login/', array(
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/password/', array(
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/register/', array(
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/subscribe/', array(
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/user-available/', array(
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/membership-add/', array(
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'methods' => 'GET',
'callback' => array( $this, 'status' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/active-campaign/', array(
'methods' => 'GET',
'callback' => array( $this, 'is_active_campaign_connected' ),
'methods' => 'GET',
'callback' => array( $this, 'is_active_campaign_connected' ),
'permission_callback' => '__return_true',
));

/* **** *
* POST *
* **** */

register_rest_route( 'wampum/v1', '/login/', array(
'methods' => 'POST',
'callback' => array( $this, 'login' ),
'methods' => 'POST',
'callback' => array( $this, 'login' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/password/', array(
'methods' => 'POST',
'callback' => array( $this, 'save_password' ),
'methods' => 'POST',
'callback' => array( $this, 'save_password' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/register/', array(
'methods' => 'POST',
'callback' => array( $this, 'register' ),
'methods' => 'POST',
'callback' => array( $this, 'register' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/subscribe/', array(
'methods' => 'POST',
'callback' => array( $this, 'subscribe' ),
'methods' => 'POST',
'callback' => array( $this, 'subscribe' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/user-available/', array(
'methods' => 'POST',
'callback' => array( $this, 'user_available' ),
'methods' => 'POST',
'callback' => array( $this, 'user_available' ),
'permission_callback' => '__return_true',
));

register_rest_route( 'wampum/v1', '/membership-add/', array(
'methods' => 'POST',
'callback' => array( $this, 'membership_add' ),
'methods' => 'POST',
'callback' => array( $this, 'membership_add' ),
'permission_callback' => '__return_true',
));

}
Expand Down
Loading

0 comments on commit 3b10e44

Please sign in to comment.