Skip to:
Content

BuddyPress.org

Ticket #8892: 8892.patch

File 8892.patch, 2.9 KB (added by upadalavipul, 19 months ago)
  • src/bp-blogs/bp-blogs-activity.php

     
    954954
    955955        // Get the comment status.
    956956        $post_comment_status = wp_get_comment_status( $post_comment_id );
    957         $old_comment_status  = $post_comment_status;
    958957
    959958        // No need to edit the activity, as it's the activity who's updating the comment.
    960959        remove_action( 'transition_comment_status', 'bp_activity_transition_post_type_comment_status', 10 );
     
    14171416        $blog_comment_id = bp_activity_get_meta( $activity->id, "bp_blogs_{$post_type}_comment_id" );
    14181417
    14191418        if ( ! empty( $blog_comment_id ) ) {
    1420                 $bp = buddypress();
    14211419
    14221420                // Check if a comment action id is set for the parent activity.
    14231421                $comment_action_id = bp_activity_post_type_get_tracking_arg( $parent_activity->type, 'comment_action_id' );
  • src/bp-blogs/bp-blogs-filters.php

     
    7777 * @return bool True to authorize the post to be published, otherwise false.
    7878 */
    7979function bp_blogs_post_pre_publish( $return = true, $blog_id = 0, $post_id = 0, $user_id = 0 ) {
    80         $bp = buddypress();
    8180
    8281        // If blog is not trackable, do not record the activity.
    8382        if ( ! bp_blogs_is_blog_trackable( $blog_id, $user_id ) ) {
  • src/bp-members/classes/class-bp-members-invitation-manager.php

     
    5252                                return false;
    5353                        }
    5454
    55                         $inviter_ud = bp_core_get_core_userdata( $invitation->inviter_id );
    56 
    5755                        $invite_url = esc_url(
    5856                                add_query_arg(
    5957                                        array(
  • src/bp-members/classes/class-bp-members-list-table.php

     
    366366                        return;
    367367                }
    368368
    369                 $profile_field_ids = array();
    370 
    371369                // Fetch registration field data once only.
    372370                if ( ! $this->signup_field_labels ) {
    373371                        $field_groups = bp_xprofile_get_groups(
  • src/bp-members/classes/class-bp-members-ms-list-table.php

     
    358358                }
    359359
    360360                if ( bp_is_active( 'xprofile' ) ) {
    361                         $profile_field_ids = array();
    362361
    363362                        // Fetch registration field data once only.
    364363                        if ( ! $this->signup_field_labels ) {