From 22cff24be103edeb88c1b13a50d9b68915f31e37 Mon Sep 17 00:00:00 2001 From: Daniel Espinoza Date: Thu, 20 Jul 2017 17:00:21 -0500 Subject: [PATCH] Version 1.4.9. _get_meta_defaults() was using integer instead of string for form ID. --- readme.txt | 5 ++++- wp-convertkit.php | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/readme.txt b/readme.txt index e8849d17a..71f540239 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://convertkit.com Tags: email, marketing, embed form, convertkit, capture Requires at least: 3.6 Tested up to: 4.8 -Stable tag: 1.4.8 +Stable tag: 1.4.9 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -44,6 +44,9 @@ Yes, for it to work you must first have an account on ConvertKit.com == Changelog == +### 1.4.9 2017-07-20 +* Fix _get_meta_defaults() because Posts and Pages set to Default were not showing forms. + ### 1.4.8 2017-07-13 * Fixed API response not getting unzipped * Added check for multibyte string PHP extension diff --git a/wp-convertkit.php b/wp-convertkit.php index 28a09a97b..48186b663 100644 --- a/wp-convertkit.php +++ b/wp-convertkit.php @@ -3,7 +3,7 @@ * Plugin Name: ConvertKit * Plugin URI: https://convertkit.com/ * Description: Quickly and easily integrate ConvertKit forms into your site. - * Version: 1.4.8 + * Version: 1.4.9 * Author: ConvertKit * Author URI: https://convertkit.com/ * Text Domain: convertkit @@ -20,7 +20,7 @@ */ class WP_ConvertKit { - const VERSION = '1.4.8'; + const VERSION = '1.4.9'; const POST_META_KEY = '_wp_convertkit_post_meta'; @@ -309,7 +309,7 @@ public static function shortcode( $attributes, $content = null ) { private static function _get_meta_defaults() { if ( is_null( self::$meta_defaults ) ) { self::$meta_defaults = array( - 'form' => -1, + 'form' => '-1', 'landing_page' => '', ); }