Plugin Directory

Changeset 1538114


Ignore:
Timestamp:
11/22/2016 07:07:28 AM (9 years ago)
Author:
jakob42
Message:

released 2.1.3

Location:
reaction-buttons
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • reaction-buttons/tags/2.1.3/reaction_buttons.php

    r1425236 r1538114  
    44   Plugin URI: http://blog.jl42.de/reaction-buttons/
    55   Description: Adds Buttons for very simple and fast feedback to your post. Inspired by Blogger.
    6    Version: 2.1.2
     6   Version: 2.1.3
    77   Author: Jakob Lenfers
    88   Author URI: http://blog.jl42.de
     
    7474    // if use of cookies is activated, check for them
    7575    $cookie = "";
    76     if($use_cookies){
     76    if($use_cookies && isset($_COOKIE["reaction_buttons_" . $post_id])){
    7777        $json = stripslashes($_COOKIE["reaction_buttons_" . $post_id]);
    7878        $cookie = json_decode($json, true);
     
    179179    $html .= "</ul></div>\n";
    180180
    181     return $html;
     181    return apply_filters('reaction_buttons_output', $html);
    182182}
    183183
     
    601601
    602602    // support for clearing the articles cache if w3total cache is installed
    603     if(get_option(reaction_buttons_clear_supported_caches)){
     603    if(get_option("reaction_buttons_clear_supported_caches")){
    604604        // W3 Total Cache
    605605        if (function_exists('w3tc_pgcache_flush_post')) {
     
    608608    }
    609609
    610     if(get_option(reaction_buttons_usecookies)){
    611         if ( $_COOKIE["reaction_buttons_" . $post_id] ) {
     610    if(get_option("reaction_buttons_usecookies")){
     611        if(isset($_COOKIE["reaction_buttons_" . $post_id]) && $_COOKIE["reaction_buttons_" . $post_id]){
    612612            $json = stripslashes($_COOKIE["reaction_buttons_" . $post_id]);
    613613            $cookie = json_decode($json, true);
    614614            if(!is_array($cookie)) $cookie = array();
    615615        }
    616         else {
     616        else{
    617617            $cookie = array();
    618618        }
     
    712712 */
    713713function reaction_buttons_admin_menu() {
    714     add_options_page('Reaction buttons', 'Reaction Buttons', 8, 'reaction_buttons', 'reaction_buttons_submenu');
     714    add_options_page('Reaction buttons', 'Reaction Buttons', 'manage_options', 'reaction_buttons', 'reaction_buttons_submenu');
    715715}
    716716add_action('admin_menu', 'reaction_buttons_admin_menu');
     
    991991                            foreach ($categories as $cat){
    992992                        ?>
    993                         <input type="checkbox" name="excluded_categories[<?php echo $cat->cat_ID; ?>]"<?php checked($excluded_categories[$cat->cat_ID]); ?> /> <?php echo $cat->name ?><br />
     993                        <input type="checkbox" name="excluded_categories[<?php echo $cat->cat_ID; ?>]"<?php if(isset($excluded_categories[$cat->cat_ID])){checked($excluded_categories[$cat->cat_ID]);} ?> /> <?php echo $cat->name ?><br />
    994994                        <?php
    995995                            }
  • reaction-buttons/tags/2.1.3/readme.txt

    r1425384 r1538114  
    22Tags: feedback, polls, button, comment, widget, sidebar
    33Requires at least: 3.3
    4 Tested up to: 4.5.2
    5 Stable tag: 2.1.2
     4Tested up to: 4.6.1
     5Stable tag: 2.1.3
    66License: GPLv2 or later
    77Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MLX3Z7ZD5AJ4Q
     
    7272
    7373== Changelog ==
     74= 2.1.3 =
     75* Added filter to conditionally disable the output based on post type. Check [here for an example](https://wordpress.org/support/topic/filter-the-output-for-more-developer-flexibility/). Thanks Matt Cromwell!
     76* Fixed deprecated syntax when addind the settings menu, thanks flufftron!
     77* fixed some typos and such
     78
    7479= 2.1.2 =
    7580* Added css-class 'rb-chosen' that is added to the clicked button when only one click is allowed. If you allow to click each button at least once, use the old voted class instead.
  • reaction-buttons/trunk/reaction_buttons.php

    r1425236 r1538114  
    44   Plugin URI: http://blog.jl42.de/reaction-buttons/
    55   Description: Adds Buttons for very simple and fast feedback to your post. Inspired by Blogger.
    6    Version: 2.1.2
     6   Version: 2.1.3
    77   Author: Jakob Lenfers
    88   Author URI: http://blog.jl42.de
     
    7474    // if use of cookies is activated, check for them
    7575    $cookie = "";
    76     if($use_cookies){
     76    if($use_cookies && isset($_COOKIE["reaction_buttons_" . $post_id])){
    7777        $json = stripslashes($_COOKIE["reaction_buttons_" . $post_id]);
    7878        $cookie = json_decode($json, true);
     
    179179    $html .= "</ul></div>\n";
    180180
    181     return $html;
     181    return apply_filters('reaction_buttons_output', $html);
    182182}
    183183
     
    601601
    602602    // support for clearing the articles cache if w3total cache is installed
    603     if(get_option(reaction_buttons_clear_supported_caches)){
     603    if(get_option("reaction_buttons_clear_supported_caches")){
    604604        // W3 Total Cache
    605605        if (function_exists('w3tc_pgcache_flush_post')) {
     
    608608    }
    609609
    610     if(get_option(reaction_buttons_usecookies)){
    611         if ( $_COOKIE["reaction_buttons_" . $post_id] ) {
     610    if(get_option("reaction_buttons_usecookies")){
     611        if(isset($_COOKIE["reaction_buttons_" . $post_id]) && $_COOKIE["reaction_buttons_" . $post_id]){
    612612            $json = stripslashes($_COOKIE["reaction_buttons_" . $post_id]);
    613613            $cookie = json_decode($json, true);
    614614            if(!is_array($cookie)) $cookie = array();
    615615        }
    616         else {
     616        else{
    617617            $cookie = array();
    618618        }
     
    712712 */
    713713function reaction_buttons_admin_menu() {
    714     add_options_page('Reaction buttons', 'Reaction Buttons', 8, 'reaction_buttons', 'reaction_buttons_submenu');
     714    add_options_page('Reaction buttons', 'Reaction Buttons', 'manage_options', 'reaction_buttons', 'reaction_buttons_submenu');
    715715}
    716716add_action('admin_menu', 'reaction_buttons_admin_menu');
     
    991991                            foreach ($categories as $cat){
    992992                        ?>
    993                         <input type="checkbox" name="excluded_categories[<?php echo $cat->cat_ID; ?>]"<?php checked($excluded_categories[$cat->cat_ID]); ?> /> <?php echo $cat->name ?><br />
     993                        <input type="checkbox" name="excluded_categories[<?php echo $cat->cat_ID; ?>]"<?php if(isset($excluded_categories[$cat->cat_ID])){checked($excluded_categories[$cat->cat_ID]);} ?> /> <?php echo $cat->name ?><br />
    994994                        <?php
    995995                            }
  • reaction-buttons/trunk/readme.txt

    r1425384 r1538114  
    22Tags: feedback, polls, button, comment, widget, sidebar
    33Requires at least: 3.3
    4 Tested up to: 4.5.2
    5 Stable tag: 2.1.2
     4Tested up to: 4.6.1
     5Stable tag: 2.1.3
    66License: GPLv2 or later
    77Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MLX3Z7ZD5AJ4Q
     
    7272
    7373== Changelog ==
     74= 2.1.3 =
     75* Added filter to conditionally disable the output based on post type. Check [here for an example](https://wordpress.org/support/topic/filter-the-output-for-more-developer-flexibility/). Thanks Matt Cromwell!
     76* Fixed deprecated syntax when addind the settings menu, thanks flufftron!
     77* fixed some typos and such
     78
    7479= 2.1.2 =
    7580* Added css-class 'rb-chosen' that is added to the clicked button when only one click is allowed. If you allow to click each button at least once, use the old voted class instead.
Note: See TracChangeset for help on using the changeset viewer.