Skip to content

Commit

Permalink
Version 1.4.9. _get_meta_defaults() was using integer instead of stri…
Browse files Browse the repository at this point in the history
…ng for form ID.
  • Loading branch information
growdev committed Jul 20, 2017
1 parent 6e54fcc commit 22cff24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions wp-convertkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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';

Expand Down Expand Up @@ -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' => '',
);
}
Expand Down

0 comments on commit 22cff24

Please sign in to comment.