💥 TRENDING: Changeset/ - Full Gallery 2025

Changeset 3199598


Ignore:
Timestamp:
11/29/2024 05:34:42 PM (13 months ago)
Author:
natekinkead
Message:

Preparing for 2.1.13.0 release

Location:
bbp-voting/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • bbp-voting/trunk/backend.php

    r3042272 r3199598  
    147147        'Remove scores and voting buttons from replies',
    148148        'You can override this at the forum level');
     149        bbp_voting_field('bbp_voting_disable_forum_index_buttons',
     150        'Disable Voting on Forum Index Page',
     151        'Remove scores and voting buttons from the forum page',
     152        'Voting on topics can still happen on the single topic pages.');
    149153
    150154
  • bbp-voting/trunk/bbp-voting.php

    r3128485 r3199598  
    77Description: Let users vote up or down on bbPress topics and replies just like Reddit or Stack Overflow.
    88Text Domain: bbp-voting
    9 Version: 2.1.12.7
     9Version: 2.1.13.0
    1010Requires at least: 4.0.0
    11 Tested up to: 6.6.1
     11Tested up to: 6.7.1
    1212License: GPLv3
    1313*/
     
    3333    'bbp_voting_only_topics' => 'bool',
    3434    'bbp_voting_only_replies' => 'bool',
     35    'bbp_voting_disable_forum_index_buttons' => 'bool',
    3536    'bbp_voting_disable_voting_for_visitors' => 'bool',
    3637    'bbp_voting_disable_voting_on_closed_topic' => 'bool',
  • bbp-voting/trunk/frontend.php

    r3091834 r3199598  
    6868}
    6969
    70 function bbp_voting_buttons($post_obj = false) { // $author_link = '', $r = arrray(), $args = array()
     70function bbp_voting_buttons($post_obj = false) {
    7171    // global $bbp_voting_last_author_link_post_id;
    7272    $current_action = current_action();
     
    109109                case $topic_post_type:
    110110                    $forum_id = bbp_get_topic_forum_id($post_id);
    111                     $post_setting = get_post_meta( $forum_id, 'bbp_voting_forum_enable_topics', true);
     111                    $post_setting = get_post_meta($forum_id, 'bbp_voting_forum_enable_topics', true);
    112112                    $broad_disable = apply_filters('bbp_voting_only_replies', false);
     113                    $disable_forum_index_buttons = is_singular('topic') ? false : apply_filters('bbp_voting_disable_forum_index_buttons', false);
    113114                break;
    114115                case $reply_post_type:
    115116                    $forum_id = bbp_get_reply_forum_id($post_id);
    116                     $post_setting = get_post_meta( $forum_id, 'bbp_voting_forum_enable_replies', true);
     117                    $post_setting = get_post_meta($forum_id, 'bbp_voting_forum_enable_replies', true);
    117118                    $broad_disable = apply_filters('bbp_voting_only_topics', false);
     119                    $disable_forum_index_buttons = false;
    118120                break;
    119121            }
     
    127129            // Use broad disable settings
    128130            if($broad_disable === true) return;
     131            // Use broad disable settings
     132            if($disable_forum_index_buttons === true) return;
    129133        }
    130134        // Done with "allowed" checks... let's do this
  • bbp-voting/trunk/readme.txt

    r3128485 r3199598  
    44Tags: bbpress, voting, vote, rating, rate, topics, replies, up, down, score, stackoverflow, reddit, forum
    55Requires at least: 4.0
    6 Tested up to: 6.6.1
    7 Stable tag: 2.1.12.7
     6Tested up to: 6.7.1
     7Stable tag: 2.1.13.0
    88Requires PHP: 5.6
    99License: GPLv3
     
    106106== Changelog ==
    107107
     108= 2.1.13.0 =
     109* New setting to disable voting on forum index page while allowing voting on topics on their single topic page.
     110
    108111= 2.1.12.7 =
    109112* Support for Pro feature for topic authors to unselect accepted answer.
Note: See TracChangeset for help on using the changeset viewer.