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
Branches
Tags
No related merge requests found
......@@ -3,7 +3,7 @@
Plugin Name: Flattr
Plugin URI: http://wordpress.org/extend/plugins/flattr/
Description: Give your readers the opportunity to Flattr your effort
Version: 0.9.18
Version: 0.9.19
Author: 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. :)
......
......@@ -2,7 +2,7 @@
class Flattr
{
const VERSION = '0.9.18';
const VERSION = '0.9.19';
const WP_MIN_VER = '2.9';
const API_SCRIPT = 'api.flattr.com/js/0.6/load.js?mode=auto';
......@@ -307,8 +307,11 @@ class Flattr
else {
$result = $content . $button;
}
return $result;
if ( ! post_password_required($post->ID) )
{
return $result;
}
return $content;
}
}
......
......@@ -35,6 +35,9 @@ Note that we only support PHP 5 and WordPress 2.9 or above.
== Changelog ==
= 0.9.19 =
Dont show Flattr button on password protected posts until the password has been accepted.
= 0.9.18 =
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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment