[wp-trac] [WordPress Trac] #36315: get_avatar_data filter hook runs twice per request

WordPress Trac noreply at wordpress.org
Wed Mar 23 23:09:21 UTC 2016


#36315: get_avatar_data filter hook runs twice per request
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.4.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If you run this test function hooked to {{{get_avatar_data}}}, you should
 see {{{$var}}} gets dumped twice:

 {{{
 add_filter( 'get_avatar_data', function( $args, $id_or_email ) {
     $var = 'foo';
     var_dump( $var );
     return $args;
 }, 10, 2 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36315>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list