Changeset 6886
- Timestamp:
- 12/20/2018 09:24:09 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/metaboxes.php
r6811 r6886 745 745 function bbp_topic_subscriptions_metabox( $post ) { 746 746 747 // Current user subscription 748 $input_value = bbp_is_user_subscribed( bbp_get_current_user_id(), $post->ID ) 749 ? 'bbp_subscribe' // maintain existing subscription 750 : ''; // do not add or remove subscription 751 747 752 // Get user IDs 748 753 $user_ids = bbp_get_subscribers( $post->ID ); … … 750 755 // Output 751 756 ?> 752 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="hidden" value=" bbp_subscribe" <?php bbp_form_topic_subscribed(); ?>/>757 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="hidden" value="<?php echo esc_attr( $input_value ); ?>" /> 753 758 <p><?php 754 759
Note: See TracChangeset
for help on using the changeset viewer.