Skip to content
Snippets Groups Projects
Commit 8cb6e685 authored by godog's avatar godog Committed by lechuck
Browse files

Import flattr 0.9.19

parent 928e20cf
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Plugin Name: Flattr Plugin Name: Flattr
Plugin URI: http://wordpress.org/extend/plugins/flattr/ Plugin URI: http://wordpress.org/extend/plugins/flattr/
Description: Give your readers the opportunity to Flattr your effort Description: Give your readers the opportunity to Flattr your effort
Version: 0.9.18 Version: 0.9.19
Author: Flattr.com Author: Flattr.com
Author URI: http://flattr.com/ Author URI: http://flattr.com/
License: This code is (un)licensed under the kopimi (copyme) non-license; http://www.kopimi.com. In other words you are free to copy it, taunt it, share it, fork it or whatever. :) License: This code is (un)licensed under the kopimi (copyme) non-license; http://www.kopimi.com. In other words you are free to copy it, taunt it, share it, fork it or whatever. :)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
class Flattr class Flattr
{ {
const VERSION = '0.9.18'; const VERSION = '0.9.19';
const WP_MIN_VER = '2.9'; const WP_MIN_VER = '2.9';
const API_SCRIPT = 'api.flattr.com/js/0.6/load.js?mode=auto'; const API_SCRIPT = 'api.flattr.com/js/0.6/load.js?mode=auto';
...@@ -307,9 +307,12 @@ class Flattr ...@@ -307,9 +307,12 @@ class Flattr
else { else {
$result = $content . $button; $result = $content . $button;
} }
if ( ! post_password_required($post->ID) )
{
return $result; return $result;
} }
return $content;
}
} }
Flattr::getInstance(); Flattr::getInstance();
......
...@@ -35,6 +35,9 @@ Note that we only support PHP 5 and WordPress 2.9 or above. ...@@ -35,6 +35,9 @@ Note that we only support PHP 5 and WordPress 2.9 or above.
== Changelog == == Changelog ==
= 0.9.19 =
Dont show Flattr button on password protected posts until the password has been accepted.
= 0.9.18 = = 0.9.18 =
Will now use version 0.6 of the JS API. Will now use version 0.6 of the JS API.
Will load the JS API using https only if the blog itself is using https. This should make the button load a bit faster for most of you. Will load the JS API using https only if the blog itself is using https. This should make the button load a bit faster for most of you.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment