Skip to:
Content

bbPress.org

Changeset 3266


Ignore:
Timestamp:
05/29/2011 02:10:52 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Fix checked status of topic subscription form checkbox.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-topic-template.php

    r3265 r3266  
    30063006            }
    30073007
     3008        // Get current status
     3009        } elseif ( bbp_is_topic() ) {
     3010            $topic_subscribed = bbp_is_user_subscribed( bbp_get_current_user_id() );
     3011
    30083012        // No data
    30093013        } else {
     
    30113015        }
    30123016
    3013         return apply_filters( 'bbp_get_form_topic_subscribed', checked( 'bbp_subscribe', $topic_subscribed, false ) );
     3017        // Get checked output
     3018        $checked = checked( $topic_subscribed, true, false );
     3019
     3020        return apply_filters( 'bbp_get_form_topic_subscribed', $checked, $topic_subscribed );
    30143021    }
    30153022
Note: See TracChangeset for help on using the changeset viewer.