Skip to content

Commit

Permalink
1.3.4: Fix bug showing error message for some users
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlamarwheeler committed Sep 15, 2015
1 parent 305696d commit b81bb2d
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 5 deletions.
74 changes: 74 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# ConvertKit
Contributors: nickohrn, davidlamarwheeler
Donate link: https://convertkit.com
Tags: email, marketing, embed form, convertkit, capture
Requires at least: 3.6
Tested up to: 4.3
Stable tag: 1.3.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

ConvertKit is an email marketing platform for capturing leads from your WordPress blog.

## Description

[ConvertKit](https://convertkit.com) makes it easy to capture more leads and sell more products by easily
embedding email capture forms anywhere. This plugin makes it a little bit easier for those of us using WordPress
blogs, by automatically appending a lead capture form to any post or page.

If you choose a default form on the settings page, that form will be embedded at the bottom of every post or page
(in single view only) across your site. If you wish to turn off form embedding or select a different form for
an individual post or page, you can do so within the ConvertKit meta box on the editing form.

Finally, you can insert the default form into the middle of post or page content by using the `[convertkit]` shortcode.

## Installation

1. Upload `wp-convertkit` to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Visit the settings page by clicking on the link under the plugin's name
4. Enter your ConvertKit API key, which you can find [here](https://app.convertkit.com/account/edit), and save the settings
5. Select your default form and save the settings
6. If you wish, choose particular forms for each post or page by visiting the edit screen and choosing the correct form

## Frequently asked questions

### Does this plugin require a paid service? =

Yes, for it to work you must first have an account on ConvertKit.com

## Screenshots

1. Insert modal forms into any post
2. Add stunning landing pages

## Changelog

### 1.3.3

* Updated for compatibility with WordPress 4.3

### 1.3.2

* Another fix for a pesky bug causing syntax errors

### 1.3.1

* Fixes a bug causing syntax error when getting options

### 1.3.0

* Added WishList Member integration
* Updated API methods

### 1.2.1

* Fixed a warning that appeared sometimes when no forms were loaded.

### 1.2.0

* Updated to use responsive forms

### 1.0.0

* Initial release
2 changes: 1 addition & 1 deletion lib/convertkit-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct($api_key) {
* @return object API response
*/
public function get_resources($resource) {
if(is_null($this->resources[$resource])) {
if(!array_key_exists($resource, $this->resources)) {
$api_response = $this->_get_api_response($resource);

if (is_wp_error($api_response) || isset($api_response['error']) || isset($api_response['error_message'])) {
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Yes, for it to work you must first have an account on ConvertKit.com

== Screenshots ==

1. https://www.dropbox.com/s/adrsa449r6dy4xc/Modal-Form.jpg?dl=0
2. https://www.dropbox.com/s/29l0knie5i6i5id/Single-column-page.jpg?dl=0
1. Insert modal forms into any post
2. Add stunning landing pages

== Changelog ==

Expand Down
4 changes: 2 additions & 2 deletions wp-convertkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: WP ConvertKit
Plugin URI: http://convertkit.com/
Description: Quickly and easily integrate ConvertKit forms into your site.
Version: 1.3.3
Version: 1.3.4
Author: ConvertKit
Author URI: http://convertkit.com/
*/
Expand All @@ -15,7 +15,7 @@
class WP_ConvertKit {

// Plugin Version
const VERSION = '1.3.3';
const VERSION = '1.3.4';

// DB Keys
const POST_META_KEY = '_wp_convertkit_post_meta';
Expand Down

0 comments on commit b81bb2d

Please sign in to comment.