Skip to:
Content

BuddyPress.org

Changeset 13497


Ignore:
Timestamp:
06/04/2023 05:48:51 AM (17 months ago)
Author:
imath
Message:

Core, Activity & Notifications: remove never used inited variables

Props upadalavipul

Fixes #8892
Closes https://github.com/buddypress/buddypress/pull/113

Location:
trunk/src
Files:
6 edited

Legend:

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

    r13395 r13497  
    985985 */
    986986function bp_activity_admin_edit_metabox_type( $item ) {
    987     $bp = buddypress();
    988987
    989988    $actions  = array();
  • trunk/src/bp-activity/classes/class-bp-activity-list-table.php

    r13146 r13497  
    9696        $include_id       = false;
    9797        $search_terms     = false;
    98         $sort             = 'DESC';
    9998        $spam             = 'ham_only';
    10099
  • trunk/src/bp-core/admin/bp-core-admin-functions.php

    r13471 r13497  
    11461146
    11471147    $tax_name = esc_attr( $r['taxonomy'] );
    1148     $taxonomy = get_taxonomy( $r['taxonomy'] );
    11491148    ?>
    11501149    <div id="taxonomy-<?php echo $tax_name; ?>" class="categorydiv">
  • trunk/src/bp-core/admin/bp-core-admin-schema.php

    r13395 r13497  
    614614    $sql             = array();
    615615    $charset_collate = $GLOBALS['wpdb']->get_charset_collate();
    616     $bp_prefix       = bp_core_get_table_prefix();
    617616    $optouts_class   = new BP_Optout();
    618617    $table_name      = $optouts_class->get_table_name();
  • trunk/src/bp-core/bp-core-avatars.php

    r13468 r13497  
    1818function bp_core_set_avatar_constants() {
    1919
    20     $bp = buddypress();
    21 
    22     if ( !defined( 'BP_AVATAR_THUMB_WIDTH' ) )
     20    if ( ! defined( 'BP_AVATAR_THUMB_WIDTH' ) ) {
    2321        define( 'BP_AVATAR_THUMB_WIDTH', 50 );
    24 
    25     if ( !defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
     22    }
     23
     24    if ( ! defined( 'BP_AVATAR_THUMB_HEIGHT' ) ) {
    2625        define( 'BP_AVATAR_THUMB_HEIGHT', 50 );
    27 
    28     if ( !defined( 'BP_AVATAR_FULL_WIDTH' ) )
     26    }
     27
     28    if ( ! defined( 'BP_AVATAR_FULL_WIDTH' ) ) {
    2929        define( 'BP_AVATAR_FULL_WIDTH', 150 );
    30 
    31     if ( !defined( 'BP_AVATAR_FULL_HEIGHT' ) )
     30    }
     31
     32    if ( ! defined( 'BP_AVATAR_FULL_HEIGHT' ) ) {
    3233        define( 'BP_AVATAR_FULL_HEIGHT', 150 );
    33 
    34     if ( !defined( 'BP_AVATAR_ORIGINAL_MAX_WIDTH' ) )
     34    }
     35
     36    if ( ! defined( 'BP_AVATAR_ORIGINAL_MAX_WIDTH' ) ) {
    3537        define( 'BP_AVATAR_ORIGINAL_MAX_WIDTH', 450 );
    36 
    37     if ( !defined( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' ) ) {
     38    }
     39
     40    if ( ! defined( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE' ) ) {
    3841        define( 'BP_AVATAR_ORIGINAL_MAX_FILESIZE', bp_attachments_get_max_upload_file_size( 'avatar' ) );
    3942    }
  • trunk/src/bp-notifications/bp-notifications-functions.php

    r13442 r13497  
    929929    ) );
    930930
    931     $user_data_to_export = array();
    932 
    933931    foreach ( $notifications as $notification ) {
    934932        if ( 'xprofile' === $notification->component_name ) {
Note: See TracChangeset for help on using the changeset viewer.