Skip to:
Content

BuddyPress.org

Changeset 7436


Ignore:
Timestamp:
10/17/2013 02:20:41 AM (11 years ago)
Author:
boonebgorges
Message:

Don't use extract() in bp_get_message_thread_avatar()

Just don't do it, dude.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages/bp-messages-template.php

    r7435 r7436  
    362362
    363363        $r = wp_parse_args( $args, $defaults );
    364         extract( $r, EXTR_SKIP );
    365 
    366         return apply_filters( 'bp_get_message_thread_avatar', bp_core_fetch_avatar( array( 'item_id' => $messages_template->thread->last_sender_id, 'type' => $type, 'alt' => $alt, 'css_id' => $id, 'class' => $class, 'width' => $width, 'height' => $height ) ) );
     364
     365        return apply_filters( 'bp_get_message_thread_avatar', bp_core_fetch_avatar( array(
     366            'item_id' => $messages_template->thread->last_sender_id,
     367            'type'    => $r['type'],
     368            'alt'     => $r['alt'],
     369            'css_id'  => $r['id'],
     370            'class'   => $r['class'],
     371            'width'   => $r['width'],
     372            'height'  => $r['height'],
     373        ) ) );
    367374    }
    368375
Note: See TracChangeset for help on using the changeset viewer.