Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/28/2012 09:38:27 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Fix incorrect sanity check in bp_activity_action_post_comment() causing conflict with bbPress reply editing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-actions.php

    r5582 r5664  
    231231 * @since 1.2.0
    232232 *
    233  * @global object $bp BuddyPress global settings
    234233 * @uses is_user_logged_in()
    235234 * @uses bp_is_activity_component()
     
    249248 */
    250249function bp_activity_action_post_update() {
    251         global $bp;
    252250
    253251        // Do not proceed if user is not logged in, not viewing activity, or not posting
     
    300298 * @since 1.2.0
    301299 *
    302  * @global object $bp BuddyPress global settings
    303300 * @uses is_user_logged_in()
    304301 * @uses bp_is_activity_component()
     
    315312 */
    316313function bp_activity_action_post_comment() {
    317         global $bp;
    318 
    319         if ( !is_user_logged_in() || ( bp_is_activity_component() ) || !bp_is_current_action( 'reply' ) )
     314
     315        if ( !is_user_logged_in() || !bp_is_activity_component() || !bp_is_current_action( 'reply' ) )
    320316                return false;
    321317
Note: See TracChangeset for help on using the changeset viewer.