Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2012 09:38:45 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Remove a bunch of unneeded globals and clean up some code in Core component. See #3989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-avatars.php

    r5666 r5683  
    390390    extract( $args, EXTR_SKIP );
    391391
    392     if ( !$item_id ) {
     392    if ( empty( $item_id ) ) {
    393393        if ( 'user' == $object )
    394394            $item_id = bp_displayed_user_id();
     
    403403    }
    404404
    405     if ( !$avatar_dir ) {
     405    if ( empty( $avatar_dir ) ) {
    406406        if ( 'user' == $object )
    407407            $avatar_dir = 'avatars';
     
    548548 *  crop_y - The vertical starting point of the crop
    549549 *
    550  * @global object $bp BuddyPress global settings
    551550 * @param mixed $args
    552551 * @return bool Success/failure
    553552 */
    554553function bp_core_avatar_handle_crop( $args = '' ) {
    555     global $bp;
    556554
    557555    $defaults = array(
Note: See TracChangeset for help on using the changeset viewer.