Changeset 1912156
- Timestamp:
- 07/20/2018 11:32:08 AM (6 years ago)
- Location:
- wp-chimp/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-chimp/trunk/admin/partials/class-page.php
r1910452 r1912156 237 237 238 238 Core\update_the_option( 'wp_chimp_lists_init', 0 ); 239 239 240 Core\update_the_option( 'wp_chimp_lists_total_items', $total_items ? $total_items : 0 ); 240 241 Core\update_the_option( 'wp_chimp_api_key_status', null === $total_items ? 'invalid' : 'valid' ); -
wp-chimp/trunk/core/class-options.php
r1910452 r1912156 33 33 'wp_chimp_api_key' => [ 34 34 'default' => '', 35 ' validate_callback' => 'WP_Chimp\\Core\\filter_string',35 'e_callback' => 'WP_Chimp\\Core\\filter_string', 36 36 ], 37 37 'wp_chimp_lists_default' => [ 38 38 'default' => '', 39 ' validate_callback' => 'WP_Chimp\\Core\\filter_string',39 'e_callback' => 'WP_Chimp\\Core\\filter_string', 40 40 ], 41 41 'wp_chimp_api_key_status' => [ 42 42 'default' => 'invalid', 43 ' validate_callback' => 'WP_Chimp\\Core\\filter_api_key_status',43 'e_callback' => 'WP_Chimp\\Core\\filter_api_key_status', 44 44 ], 45 45 'wp_chimp_lists_total_items' => [ 46 46 'default' => 0, 47 ' validate_callback' => 'absint',47 'e_callback' => 'absint', 48 48 ], 49 49 'wp_chimp_lists_init' => [ 50 50 'default' => 0, 51 ' validate_callback' => 'absint',51 'e_callback' => 'absint', 52 52 ], 53 53 ]; … … 79 79 if ( isset( self::$options[ $option_name ] ) ) { 80 80 $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 ); 82 82 } else { 83 83 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 143 143 144 144 $requires = [ 145 'php' => '5.4 .45',146 'wp' => '4.9 .0',145 'php' => '5.4', 146 'wp' => '4.9', 147 147 'wp_cron' => true, 148 148 ]; -
wp-chimp/trunk/readme.txt
r1910452 r1912156 3 3 Donate link: https://paypal.me/tfirdaus 4 4 Tags: mailchimp, form, subscription, gutenberg, widget, shortocode. 5 Requires at least: 4.9 .05 Requires at least: 4.9 6 6 Tested up to: 4.9.7 7 Stable tag: 0.2. 08 Requires PHP: 5.4 .457 Stable tag: 0.2. 8 Requires PHP: 5.4 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 67 67 == Changelog == 68 68 69 70 71 72 73 74 75 76 77 78 69 79 = 0.1.0 = 70 80 * Added: Basic functionality of a MailChimp subscription form. … … 73 83 * Added: A Settings page for the plugin. 74 84 * Added: A couple of custom WP-API endpoints. 85 86 87 88 89 90 91 92 -
wp-chimp/trunk/wp-chimp.php
r1910452 r1912156 16 16 * Plugin URI: https://wordpress.org/plugins/wp-chimp 17 17 * Description: Lean MailChimp subscription form plugin for WordPress 18 * Version: 0.2. 018 * Version: 0.2. 19 19 * Author: Thoriq Firdaus 20 20 * Author URI: https://wp-chimp.com … … 59 59 if ( is_null( $plugin ) ) { 60 60 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__ ); 62 62 $plugin->set_loader( new WP_Chimp\Core\Loader() ); 63 63
Note: See TracChangeset
for help on using the changeset viewer.