Plugin Directory

Changeset 2223302


Ignore:
Timestamp:
01/07/2020 07:02:06 AM (6 years ago)
Author:
likebtn
Message:

Update

Location:
likebtn-like-button
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • likebtn-like-button/tags/2.6.23/includes/buddypress.php

    r2202481 r2223302  
    8686
    8787        // We modify global wp_filter to call our bbPress wrapper function
    88         if (isset($wp_filter['bp_notifications_get_notifications_for_user'][10]['bbp_format_buddypress_notifications'])) {
    89             if (version_compare($wp_version, '4.7', '>=' )) {
    90                 // https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/
    91                 $wp_filter['bp_notifications_get_notifications_for_user']->callbacks[10]['bbp_format_buddypress_notifications']['function'] = 'likebtn_bbp_format_buddypress_notifications';
    92             } else {
    93                 $wp_filter['bp_notifications_get_notifications_for_user'][10]['bbp_format_buddypress_notifications']['function'] = 'likebtn_bbp_format_buddypress_notifications';
     88        if ( function_exists('bbp_get_version') && version_compare( bbp_get_version(), '2.6.0' , '<') ) {
     89            if (isset($wp_filter['bp_notifications_get_notifications_for_user'][10]['bbp_format_buddypress_notifications'])) {
     90                if (version_compare($wp_version, '4.7', '>=' )) {
     91                    // https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/
     92                    $wp_filter['bp_notifications_get_notifications_for_user']->callbacks[10]['bbp_format_buddypress_notifications']['function'] = 'likebtn_bbp_format_buddypress_notifications';
     93                } else {
     94                    $wp_filter['bp_notifications_get_notifications_for_user'][10]['bbp_format_buddypress_notifications']['function'] = 'likebtn_bbp_format_buddypress_notifications';
     95                }
    9496            }
    9597        }
  • likebtn-like-button/tags/2.6.23/likebtn_like_button.php

    r2202481 r2223302  
    44  Plugin URI: https://likebtn.com/en/wordpress-like-button-plugin
    55  Description: Add Like button to posts, pages, comments, WooCommerce, BuddyPress, bbPress, custom post types! Sort content by likes! Get instant stats and insights!
    6   Version: 2.6.23
     6  Version: 2.6.24
    77  Text Domain: likebtn-like-button
    88  Author: LikeBtn
     
    1515
    1616// Plugin version
    17 define('LIKEBTN_VERSION', '2.6.23');
     17define('LIKEBTN_VERSION', '2.6.24');
    1818// Current DB version
    1919define('LIKEBTN_DB_VERSION', 20);
  • likebtn-like-button/tags/2.6.23/readme.txt

    r2202481 r2223302  
    44Requires at least: 2.8
    55Tested up to: 5.3
    6 Stable tag: 2.6.23
     6Stable tag: 2.6.24
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    113113== Changelog ==
    114114
     115= 2.6.24 =
     116* Fix - Fixed bbPress error: Too few arguments to function bbp_format_buddypress_notifications
     117
    115118= 2.6.23 =
    116119* Change - Do not show elements with both zero likes and dislikes in widgets.
  • likebtn-like-button/trunk/readme.txt

    r2202481 r2223302  
    44Requires at least: 2.8
    55Tested up to: 5.3
    6 Stable tag: 2.6.23
     6Stable tag: 2.6.24
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    113113== Changelog ==
    114114
     115= 2.6.24 =
     116* Fix - Fixed bbPress error: Too few arguments to function bbp_format_buddypress_notifications
     117
    115118= 2.6.23 =
    116119* Change - Do not show elements with both zero likes and dislikes in widgets.
Note: See TracChangeset for help on using the changeset viewer.