Plugin Directory

Changeset 1912156

Timestamp:
07/20/2018 11:32:08 AM (6 years ago)
Author:
tfirdaus
Message:

Committing 0.2.1 to trunk

Location:
wp-chimp/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-chimp/trunk/admin/partials/class-page.php

    r1910452 r1912156  
    237237
    238238        Core\update_the_option( 'wp_chimp_lists_init', 0 );
     239
    239240        Core\update_the_option( 'wp_chimp_lists_total_items', $total_items ? $total_items : 0 );
    240241        Core\update_the_option( 'wp_chimp_api_key_status', null === $total_items ? 'invalid' : 'valid' );
  • wp-chimp/trunk/core/class-options.php

    r1910452 r1912156  
    3333        'wp_chimp_api_key' => [
    3434            'default' => '',
    35             'validate_callback' => 'WP_Chimp\\Core\\filter_string',
     35            'e_callback' => 'WP_Chimp\\Core\\filter_string',
    3636        ],
    3737        'wp_chimp_lists_default' => [
    3838            'default' => '',
    39             'validate_callback' => 'WP_Chimp\\Core\\filter_string',
     39            'e_callback' => 'WP_Chimp\\Core\\filter_string',
    4040        ],
    4141        'wp_chimp_api_key_status' => [
    4242            'default' => 'invalid',
    43             'validate_callback' => 'WP_Chimp\\Core\\filter_api_key_status',
     43            'e_callback' => 'WP_Chimp\\Core\\filter_api_key_status',
    4444        ],
    4545        'wp_chimp_lists_total_items' => [
    4646            'default' => 0,
    47             'validate_callback' => 'absint',
     47            'e_callback' => 'absint',
    4848        ],
    4949        'wp_chimp_lists_init' => [
    5050            'default' => 0,
    51             'validate_callback' => 'absint',
     51            'e_callback' => 'absint',
    5252        ],
    5353    ];
     
    7979        if ( isset( self::$options[ $option_name ] ) ) {
    8080            $value = get_option( $option_name, self::$options[ $option_name ]['default'] );
    81             return call_user_func( self::$options[ $option_name ]['validate_callback'], $value );
     81            return call_user_func( self::$options[ $option_name ]['e_callback'], $value );
    8282        } else {
    8383            return new WP_Error( 'wp-chimp-option-name-invalid', __( 'The option name is not registered.', 'wp-chimp' ) );
  • wp-chimp/trunk/core/class-plugin.php

    r1910452 r1912156  
    143143
    144144        $requires = [
    145             'php' => '5.4.45',
    146             'wp' => '4.9.0',
     145            'php' => '5.4',
     146            'wp' => '4.9',
    147147            'wp_cron' => true,
    148148        ];
  • wp-chimp/trunk/readme.txt

    r1910452 r1912156  
    33Donate link: https://paypal.me/tfirdaus
    44Tags: mailchimp, form, subscription, gutenberg, widget, shortocode.
    5 Requires at least: 4.9.0
     5Requires at least: 4.9
    66Tested up to: 4.9.7
    7 Stable tag: 0.2.0
    8 Requires PHP: 5.4.45
     7Stable tag: 0.2.
     8Requires PHP: 5.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6767== Changelog ==
    6868
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
    6979= 0.1.0 =
    7080* Added: Basic functionality of a MailChimp subscription form.
     
    7383* Added: A Settings page for the plugin.
    7484* Added: A couple of custom WP-API endpoints.
     85
     86
     87
     88
     89
     90
     91
     92
  • wp-chimp/trunk/wp-chimp.php

    r1910452 r1912156  
    1616 * Plugin URI: https://wordpress.org/plugins/wp-chimp
    1717 * Description: Lean MailChimp subscription form plugin for WordPress
    18  * Version: 0.2.0
     18 * Version: 0.2.
    1919 * Author: Thoriq Firdaus
    2020 * Author URI: https://wp-chimp.com
     
    5959    if ( is_null( $plugin ) ) {
    6060
    61         $plugin = new WP_Chimp\Core\Plugin( 'wp-chimp', '0.2.0', __FILE__ );
     61        $plugin = new WP_Chimp\Core\Plugin( 'wp-chimp', '0.2.', __FILE__ );
    6262        $plugin->set_loader( new WP_Chimp\Core\Loader() );
    6363
Note: See TracChangeset for help on using the changeset viewer.