• Heya,

    when using static buttons, there is no need to load the javascript from api.flattr.com at all. The following trivial patch solves the issue:

    --- flattr5.php.orig    2011-11-06 11:18:39.000000000 +0100
    +++ flattr5.php 2011-11-06 11:21:55.000000000 +0100
    @@ -46,7 +46,9 @@
                         }
                     }
    
    -               wp_enqueue_script('flattrscript', ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 'https://' : 'https://' ) . self::API_SCRIPT, array(), '0.6', true);
    +               if (get_option('flattr_button_style') == 'js') {
    +                       wp_enqueue_script('flattrscript', ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? 'https://' : 'https://' ) . self::API_SCRIPT, array(), '0.6', true);
    +               }
            }
    
            function overrideShareThis() {

    https://www.ads-software.com/extend/plugins/flattr/

  • The topic ‘[Plugin: Flattr] Don't load API_SCRIPT when using static buttons’ is closed to new replies.