Changeset 1538114
- Timestamp:
- 11/22/2016 07:07:28 AM (9 years ago)
- Location:
- reaction-buttons
- Files:
-
- 4 edited
- 1 copied
-
tags/2.1.3 (copied) (copied from reaction-buttons/trunk)
-
tags/2.1.3/reaction_buttons.php (modified) (7 diffs)
-
tags/2.1.3/readme.txt (modified) (2 diffs)
-
trunk/reaction_buttons.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
reaction-buttons/tags/2.1.3/reaction_buttons.php
r1425236 r1538114 4 4 Plugin URI: http://blog.jl42.de/reaction-buttons/ 5 5 Description: Adds Buttons for very simple and fast feedback to your post. Inspired by Blogger. 6 Version: 2.1. 26 Version: 2.1.3 7 7 Author: Jakob Lenfers 8 8 Author URI: http://blog.jl42.de … … 74 74 // if use of cookies is activated, check for them 75 75 $cookie = ""; 76 if($use_cookies ){76 if($use_cookies && isset($_COOKIE["reaction_buttons_" . $post_id])){ 77 77 $json = stripslashes($_COOKIE["reaction_buttons_" . $post_id]); 78 78 $cookie = json_decode($json, true); … … 179 179 $html .= "</ul></div>\n"; 180 180 181 return $html;181 return apply_filters('reaction_buttons_output', $html); 182 182 } 183 183 … … 601 601 602 602 // 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")){ 604 604 // W3 Total Cache 605 605 if (function_exists('w3tc_pgcache_flush_post')) { … … 608 608 } 609 609 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]){ 612 612 $json = stripslashes($_COOKIE["reaction_buttons_" . $post_id]); 613 613 $cookie = json_decode($json, true); 614 614 if(!is_array($cookie)) $cookie = array(); 615 615 } 616 else {616 else{ 617 617 $cookie = array(); 618 618 } … … 712 712 */ 713 713 function 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'); 715 715 } 716 716 add_action('admin_menu', 'reaction_buttons_admin_menu'); … … 991 991 foreach ($categories as $cat){ 992 992 ?> 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 /> 994 994 <?php 995 995 } -
reaction-buttons/tags/2.1.3/readme.txt
r1425384 r1538114 2 2 Tags: feedback, polls, button, comment, widget, sidebar 3 3 Requires at least: 3.3 4 Tested up to: 4. 5.25 Stable tag: 2.1. 24 Tested up to: 4.6.1 5 Stable tag: 2.1.3 6 6 License: GPLv2 or later 7 7 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MLX3Z7ZD5AJ4Q … … 72 72 73 73 == 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 74 79 = 2.1.2 = 75 80 * 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 4 4 Plugin URI: http://blog.jl42.de/reaction-buttons/ 5 5 Description: Adds Buttons for very simple and fast feedback to your post. Inspired by Blogger. 6 Version: 2.1. 26 Version: 2.1.3 7 7 Author: Jakob Lenfers 8 8 Author URI: http://blog.jl42.de … … 74 74 // if use of cookies is activated, check for them 75 75 $cookie = ""; 76 if($use_cookies ){76 if($use_cookies && isset($_COOKIE["reaction_buttons_" . $post_id])){ 77 77 $json = stripslashes($_COOKIE["reaction_buttons_" . $post_id]); 78 78 $cookie = json_decode($json, true); … … 179 179 $html .= "</ul></div>\n"; 180 180 181 return $html;181 return apply_filters('reaction_buttons_output', $html); 182 182 } 183 183 … … 601 601 602 602 // 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")){ 604 604 // W3 Total Cache 605 605 if (function_exists('w3tc_pgcache_flush_post')) { … … 608 608 } 609 609 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]){ 612 612 $json = stripslashes($_COOKIE["reaction_buttons_" . $post_id]); 613 613 $cookie = json_decode($json, true); 614 614 if(!is_array($cookie)) $cookie = array(); 615 615 } 616 else {616 else{ 617 617 $cookie = array(); 618 618 } … … 712 712 */ 713 713 function 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'); 715 715 } 716 716 add_action('admin_menu', 'reaction_buttons_admin_menu'); … … 991 991 foreach ($categories as $cat){ 992 992 ?> 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 /> 994 994 <?php 995 995 } -
reaction-buttons/trunk/readme.txt
r1425384 r1538114 2 2 Tags: feedback, polls, button, comment, widget, sidebar 3 3 Requires at least: 3.3 4 Tested up to: 4. 5.25 Stable tag: 2.1. 24 Tested up to: 4.6.1 5 Stable tag: 2.1.3 6 6 License: GPLv2 or later 7 7 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MLX3Z7ZD5AJ4Q … … 72 72 73 73 == 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 74 79 = 2.1.2 = 75 80 * 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.