Plugin Directory

Changeset 2600245


Ignore:
Timestamp:
09/17/2021 12:25:08 AM (5 years ago)
Author:
cloudengage
Message:

further improvements to the activation flow

Location:
chord-connect/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chord-connect/trunk/README.txt

    r2600211 r2600245  
    66Tested up to: 5.8
    77Requires PHP: 5.6
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPL-2.0+
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    186186= 1.0.2 =
    187187* Further improvements to plugin activation flow.
     188= 1.0.3 =
     189* Further improvements to plugin activation flow.
    188190
    189191== Upgrade Notice ==
     
    194196= 1.0.2 =
    195197* Further improvements to plugin activation flow.
     198= 1.0.3 =
     199* Further improvements to plugin activation flow.
  • chord-connect/trunk/chordconnect.php

    r2600211 r2600245  
    1616 * Plugin URI:        https://chordconnect.com/wp-plugin
    1717 * Description:       <strong>Experience the highest quality video chat, no downloads required.</strong> Easily integrate Chordconnect into your Wordpress site.
    18  * Version:           1.0.2
     18 * Version:           1.0.3
    1919 * Author:            CloudEngage
    2020 * Author URI:        https://cloudengage.com/
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define( 'CHORDCONNECT_VERSION', '{{ 1.0.2 }}' );
     37define( 'CHORDCONNECT_VERSION', '{{ 1.0.3 }}' );
    3838
    3939/**
  • chord-connect/trunk/includes/class-chordconnect-activator.php

    r2600210 r2600245  
    5858        $current_user = wp_get_current_user();
    5959        if ( $current_user->exists() ) {
    60             $payload = [
     60            $data = array(
    6161                'email' => $current_user->user_email,
    6262                'first_name' => $current_user->user_firstname,
     
    6464                'company' => get_bloginfo('name'),
    6565                'url' => get_bloginfo('url')
    66             ];
     66            );
    6767   
    6868            $curl = curl_init('https://go.cloudengage.com/signup/wordpress');
    6969            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    70             curl_setopt($curl, CURLOPT_HTTPHEADER, ['Content-Type:application/json']);
    71             curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($payload));
    72             curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
     70            curl_setopt($curl, CURLOPT_POST, true);
     71            curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
     72            curl_setopt($curl, CURLOPT_HTTPHEADER, ['Accept: application/json']);
    7373   
    7474            $response = curl_exec($curl);
Note: See TracChangeset for help on using the changeset viewer.