Plugin Directory

Changeset 544932


Ignore:
Timestamp:
05/16/2012 02:44:46 PM (14 years ago)
Author:
VoxPelli
Message:

Fix for frontpage HTML rel-payment linking to a post when it has been deactivated

Location:
flattr/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • flattr/trunk/flattr.php

    r544873 r544932  
    33 * @package Flattr
    44 * @author Michael Henke
    5  * @version 1.2.0b2
     5 * @version 1.2.0b3
    66Plugin Name: Flattr
    77Plugin URI: http://wordpress.org/extend/plugins/flattr/
    88Description: Give your readers the opportunity to Flattr your effort
    9 Version: 1.2.0b2
     9Version: 1.2.0b3
    1010Author: Michael Henke
    1111Author URI: http://www.codingmerc.com/tags/flattr/
     
    2121    const API_SCRIPT  = 'api.flattr.com/js/0.6/load.js?mode=auto';
    2222
    23     const VERSION = "1.2.0b2";
     23    const VERSION = "1.2.0b3";
    2424
    2525    /**
     
    443443        }
    444444
    445         if (is_front_page() && get_option('flattr_global_button')) {
    446             $url = $this->getGlobalButton('autosubmitUrl');
     445        if (is_front_page()) {
     446            $url = get_option('flattr_global_button') ? $this->getGlobalButton('autosubmitUrl') : false;
    447447        } else if (in_array(get_post_type(), (array)get_option('flattr_post_types', array()))) {
    448448            $url = $this->getButton('autosubmitUrl');
     
    505505            'user_id'     => $flattr_uid,
    506506            'popout'      => (get_option('flattr_popout_enabled', true) ? 1 : 0 ),
    507             'url'         => site_url(),
     507            'url'         => site_url('/'),
    508508            'compact'     => (get_option('flattr_compact', false) ? true : false ),
    509509            'hidden'      => get_option('flattr_hide'),
  • flattr/trunk/readme.txt

    r544867 r544932  
    5959* New Feature: The payment links in RSS/Atom can now be added without adding the graphical buttons and are now on by default
    6060* New Feature: Payment links are now not only included in feed entries - they are now also by default included in the head-tag of entry pages which is usable for eg. browser extensions to detect the existence of a flattr button.
    61 * New Feature: The site itself can now be become flattrable - both feeds and the frontpage will by default in new installs have a payment links for the site itself.
     61* New Feature: The site itself can now be become flattrable - both feeds and the frontpage will by default in new installs have a payment links for the site itself. Existing pages needs to activate the "Make frontpage flattrable" option.
    6262* New Feature: Added a [flattr] shortcode for easy inclusion of Flattr buttons in posts and pages
    6363* Fix: No longer prevents caching due to needless session initialization
Note: See TracChangeset for help on using the changeset viewer.