Plugin Directory

Changeset 3107966


Ignore:
Timestamp:
06/26/2024 09:33:19 AM (22 months ago)
Author:
mailcamp
Message:

reduced API calls

Location:
mailcamp/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • mailcamp/trunk/README.txt

    r3078692 r3107966  
    55Requires at least: 4.9.1
    66Tested up to: 6.3.3
    7 Stable tag: 1.5.17
     7Stable tag: 1.5.18
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    2222This section describes how to install the plugin and get started using it.
    2323
    24 = Version 1.5.17 =
     24= Version 1.5.18 =
    25251. Unzip our archive and upload the entire mailcamp directory to your `/wp-content/plugins/ directory`
    26262. Activate the plugin through the **Plugins** menu in WordPress
     
    3131
    3232== Changelog ==
     33
     34== 1.5.18 ==
     35* improved - reduced API calls
    3336
    3437== 1.5.17 ==
  • mailcamp/trunk/includes/core-functions.php

    r3029533 r3107966  
    230230    $options_api  = get_option( 'mailcamp_options_api' );
    231231    $options_form = get_option( 'mailcamp_options_form' );
     232
    232233    $fields       = [];
    233 
    234     if ( !isset($options_form['mailcamp_list_fields']) || empty( $options_form['mailcamp_list_fields'] ) ) {
     234    if ( !isset($options_form['mailcamp_list_fields']) || empty($options_form['mailcamp_list_fields']) ) {
    235235        return $fields;
    236236    }
    237237
    238     if ( ! isset( $options_form['custom_fields'] ) ) {
     238    if ( !isset($options_form['custom_fields']) ) {
    239239
    240240        $listid = $options_form['mailcamp_lists'];
  • mailcamp/trunk/mailcamp.php

    r3078692 r3107966  
    1414 * Plugin URI:        https://mailcamp.nl/ecommerce/koppel-wordpress-plugin-aan-mailinglijst-in-mailcamp/
    1515 * Description:       MailCamp form plugin. A simple plugin that adds a highly effective subscription form to your site.
    16  * Version:           1.5.17
     16 * Version:           1.5.18
    1717 * Author:            Silas de Rooy
    1818 * Author URI:        https://mailcamp.nl
     
    3333 * Rename this for your plugin and update it as you release new versions.
    3434 */
    35 define('MAILCAMP_VERSION', '1.5.17');
     35define('MAILCAMP_VERSION', '1.5.18');
    3636/**
    3737 * The code that runs during plugin activation.
  • mailcamp/trunk/public/class-mailcamp-public.php

    r3029962 r3107966  
    114114     */
    115115    public function add_subscriber_to_list(){
     116        // check if terms were accepted
     117        if ( !isset( $_POST["CustomFields"]['accepted'] ) || isset( $_POST["CustomFields"]['accepted'] ) && $_POST["CustomFields"]['accepted'] !== 'check' ) {
     118            echo json_encode([ false, __('Whoops .. the subscription has failed, contact the administrator of this site', 'mailcamp')]);
     119            exit;
     120        }
     121        // check captcha
     122        $captcha_answer = (int)$_POST['captcha'];
     123        if ($captcha_answer <= 0) {
     124            echo json_encode([ false, __('Whoops .. the subscription has failed, contact the administrator of this site', 'mailcamp')]);
     125            exit;
     126        }
    116127        $options = get_option( 'mailcamp_options_api' );
    117128
  • mailcamp/trunk/readme.md

    r3078692 r3107966  
    55Requires at least: 4.9.1
    66Tested up to: 6.3.3
    7 Stable tag: 1.5.17
     7Stable tag: 1.5.18
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    2121This section describes how to install the plugin and get started using it.
    2222
    23 = Version 1.5.17 =
     23= Version 1.5.18 =
    24241. Unzip our archive and upload the entire mailcamp directory to your `/wp-content/plugins/ directory`
    25252. Activate the plugin through the **Plugins** menu in WordPress
     
    3030
    3131## Changelog ##
     32
     33### 1.5.18 ###
     34* improved - reduced API calls
    3235
    3336### 1.5.17 ###
Note: See TracChangeset for help on using the changeset viewer.