Skip to:
Content

BuddyPress.org

Changeset 13476


Ignore:
Timestamp:
05/13/2023 09:19:10 AM (11 months ago)
Author:
imath
Message:

Remove never used inited variables in Blogs & Members components

Props upadalavipul

Fixes #8892

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-activity.php

    r13433 r13476  
    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.
     
    14181417
    14191418    if ( ! empty( $blog_comment_id ) ) {
    1420         $bp = buddypress();
    14211419
    14221420        // Check if a comment action id is set for the parent activity.
  • trunk/src/bp-blogs/bp-blogs-filters.php

    r13436 r13476  
    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.
     
    9190    $sitewide_tags_blog_settings = bp_core_get_root_option( 'sitewide_tags_blog' );
    9291    if ( ! empty( $sitewide_tags_blog_settings ) ) {
    93         $st_options = maybe_unserialize( $sitewide_tags_blog_settings );
     92        $st_options   = maybe_unserialize( $sitewide_tags_blog_settings );
    9493        $tags_blog_id = isset( $st_options['tags_blog_id'] ) ? $st_options['tags_blog_id'] : 0;
    9594    } else {
     
    105104     * @param bool $value Current status of the sitewide tags activity.
    106105     */
    107     if ( (int) $blog_id == $tags_blog_id && apply_filters( 'bp_blogs_block_sitewide_tags_activity', true ) ) {
     106    if ( (int) $blog_id === $tags_blog_id && apply_filters( 'bp_blogs_block_sitewide_tags_activity', true ) ) {
    108107        return false;
    109108    }
  • trunk/src/bp-members/classes/class-bp-members-invitation-manager.php

    r13433 r13476  
    5252                return false;
    5353            }
    54 
    55             $inviter_ud = bp_core_get_core_userdata( $invitation->inviter_id );
    5654
    5755            $invite_url = esc_url(
  • trunk/src/bp-members/classes/class-bp-members-list-table.php

    r13169 r13476  
    366366            return;
    367367        }
    368 
    369         $profile_field_ids = array();
    370368
    371369        // Fetch registration field data once only.
  • trunk/src/bp-members/classes/class-bp-members-ms-list-table.php

    r13169 r13476  
    359359
    360360        if ( bp_is_active( 'xprofile' ) ) {
    361             $profile_field_ids = array();
    362361
    363362            // Fetch registration field data once only.
Note: See TracChangeset for help on using the changeset viewer.