Skip to:
Content

bbPress.org

Changeset 2862


Ignore:
Timestamp:
02/10/2011 08:43:55 AM (15 years ago)
Author:
johnjamesjacoby
Message:

When editing a topic/post, check for author_id() in bb_is_user_subscribed instead of the current_user. Fixes #1462.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.bb-template.php

    r2578 r2862  
    35133513   
    35143514    $defaults = array(
    3515         'user_id' => bb_get_current_user_info( 'id' ),
     3515        'user_id'  => bb_is_topic_edit() ? bb_get_user_id( get_post_author_id() ) : bb_get_current_user_info( 'id' ),
    35163516        'topic_id' => get_topic_id()
    35173517    );
Note: See TracChangeset for help on using the changeset viewer.