Version Description
- Tiny improvement in error handling to prevent "Cannot use object of type WP_Error as array" error.
Download this release
Release Info
| Developer | joostdevalk |
| Plugin | |
| Version | 1.1.5 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.4 to 1.1.5
- clicky.php +2 -2
- readme.txt +5 -2
clicky.php
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: Clicky for WordPress
|
| 4 |
-
Version: 1.1.
|
| 5 |
Plugin URI: http://getclicky.com/goodies/#wordpress
|
| 6 |
Description: Integrates Clicky on your blog!
|
| 7 |
Author: Joost de Valk
|
|
@@ -323,7 +323,7 @@ function clickyme_shorturl($pid) {
|
|
| 323 |
return false;
|
| 324 |
|
| 325 |
$res = wp_remote_get('http://clicky.me/app/api?site_id='.$options['site_id'].'&sitekey_admin='.$options['admin_site_key'].'&url='.get_permalink($pid));
|
| 326 |
-
if ($res['response']['code'] == 200) {
|
| 327 |
$shorturl = trim($res['body']);
|
| 328 |
if (preg_match( '#^http://#', $shorturl )) {
|
| 329 |
add_post_meta($post->ID,'_clickyme_url',$shorturl,true);
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: Clicky for WordPress
|
| 4 |
+
Version: 1.1.5
|
| 5 |
Plugin URI: http://getclicky.com/goodies/#wordpress
|
| 6 |
Description: Integrates Clicky on your blog!
|
| 7 |
Author: Joost de Valk
|
| 323 |
return false;
|
| 324 |
|
| 325 |
$res = wp_remote_get('http://clicky.me/app/api?site_id='.$options['site_id'].'&sitekey_admin='.$options['admin_site_key'].'&url='.get_permalink($pid));
|
| 326 |
+
if (is_array($res) && $res['response']['code'] == 200) {
|
| 327 |
$shorturl = trim($res['body']);
|
| 328 |
if (preg_match( '#^http://#', $shorturl )) {
|
| 329 |
add_post_meta($post->ID,'_clickyme_url',$shorturl,true);
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: joostdevalk
|
|
| 3 |
Donate link: http://yoast.com/
|
| 4 |
Tags: analytics, statistics, clicky
|
| 5 |
Requires at least: 2.8
|
| 6 |
-
Tested up to: 3.0
|
| 7 |
-
Stable tag: 1.1.
|
| 8 |
|
| 9 |
Integrates the Clicky web analytics service and optionally the Clicky.me short URL service into your blog.
|
| 10 |
|
|
@@ -33,6 +33,9 @@ Integrates the [Clicky web analytics](http://getclicky.com/145844) service and o
|
|
| 33 |
|
| 34 |
== Changelog ==
|
| 35 |
|
|
|
|
|
|
|
|
|
|
| 36 |
= 1.1.4 =
|
| 37 |
* Minor backend improvements.
|
| 38 |
|
| 3 |
Donate link: http://yoast.com/
|
| 4 |
Tags: analytics, statistics, clicky
|
| 5 |
Requires at least: 2.8
|
| 6 |
+
Tested up to: 3.0.1
|
| 7 |
+
Stable tag: 1.1.5
|
| 8 |
|
| 9 |
Integrates the Clicky web analytics service and optionally the Clicky.me short URL service into your blog.
|
| 10 |
|
| 33 |
|
| 34 |
== Changelog ==
|
| 35 |
|
| 36 |
+
= 1.1.5 =
|
| 37 |
+
* Tiny improvement in error handling to prevent "Cannot use object of type WP_Error as array" error.
|
| 38 |
+
|
| 39 |
= 1.1.4 =
|
| 40 |
* Minor backend improvements.
|
| 41 |
|
