WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21267, comment 5


Ignore:
Timestamp:
08/06/12 00:26:35 (2 years ago)
Author:
wonderboymusic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21267, comment 5

    initial v1  
    22 
    33{{{ 
    4 function a_function( $filter ) { return $filter; } 
    5 class MyClass1 { function filter( $filter ) { return $filter; } } 
    6 class MyClass2 { static function filter( $filter ) { return $filter; } } 
     4function a_function( $filter ) { error_log( 'called' ); return $filter; } 
     5class MyClass1 { function filter( $filter ) { error_log( 'called' ); return $filter; } } 
     6class MyClass2 { static function filter( $filter ) { error_log( 'called' ); return $filter; } } 
    77 
    88$my_class_1 = new MyClass1; 
     
    1111add_filter( 'list_terms_exclusions', array( $my_class_1, 'filter' ) ); 
    1212add_filter( 'list_terms_exclusions', array( 'MyClass2', 'filter' ) ); 
    13 add_filter( 'list_terms_exclusions', array( 'MyClass2::filter' ) ); 
    14 add_filter( 'list_terms_exclusions', array( 'MyClass2::filter', '' ) ); 
    15 add_filter( 'list_terms_exclusions', function ( $filter ) { return $filter; } ); 
     13add_filter( 'list_terms_exclusions', 'MyClass2::filter' ); 
     14add_filter( 'list_terms_exclusions', function ( $filter ) { error_log( 'called' ); return $filter; } ); 
    1615 
    1716print_r( $GLOBALS['wp_filter']['list_terms_exclusions'] );