diff --git a/wp-content/plugins/flattr/flattr.php b/wp-content/plugins/flattr/flattr.php index 575d473592fe015a84cab8eb837575beefd25725..8d60a9772a1de3c942e444cee00ecf1b0ca127ab 100644 --- a/wp-content/plugins/flattr/flattr.php +++ b/wp-content/plugins/flattr/flattr.php @@ -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. :) diff --git a/wp-content/plugins/flattr/flattr5.php b/wp-content/plugins/flattr/flattr5.php index 15600a10b3dd6dd7f526ea440d35a20957472e57..5c5dedf2a2eeb9cec685d5f95bdc25897289f116 100644 --- a/wp-content/plugins/flattr/flattr5.php +++ b/wp-content/plugins/flattr/flattr5.php @@ -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; } } diff --git a/wp-content/plugins/flattr/readme.txt b/wp-content/plugins/flattr/readme.txt index 1b59ead1e400e48e66bd4ebebb33de9c3f1da934..5f9aff6aec0addc8dfe288458f12101d1ba74978 100644 --- a/wp-content/plugins/flattr/readme.txt +++ b/wp-content/plugins/flattr/readme.txt @@ -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.