Skip to:
Content

BuddyPress.org

Changeset 13221


Ignore:
Timestamp:
01/24/2022 09:23:23 PM (3 years ago)
Author:
imath
Message:

BP Nouveau: use right variable names in the post_update Ajax handler

Props oztaser

See #8619 (branch 10.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/10.0/src/bp-templates/bp-nouveau/includes/activity/ajax.php

    r13114 r13221  
    553553                    $status = $bp->groups->current_group->status;
    554554                } else {
    555                     $group  = groups_get_group( array( 'group_id' => $group_id ) );
     555                    $group  = groups_get_group( array( 'group_id' => $item_id ) );
    556556                    $status = $group->status;
    557557                }
     
    581581        }
    582582    }
    583     $acivity = ob_get_contents();
     583    $activity = ob_get_contents();
    584584    ob_end_clean();
    585585
     
    587587        'id'           => $activity_id,
    588588        'message'      => esc_html__( 'Update posted.', 'buddypress' ) . ' ' . sprintf( '<a href="%s" class="just-posted">%s</a>', esc_url( bp_activity_get_permalink( $activity_id ) ), esc_html__( 'View activity.', 'buddypress' ) ),
    589         'activity'     => $acivity,
     589        'activity'     => $activity,
    590590
    591591        /**
Note: See TracChangeset for help on using the changeset viewer.