Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/04/2023 05:48:51 AM (13 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    }
Note: See TracChangeset for help on using the changeset viewer.