WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
08/06/12 14:31:19 (21 months ago)
Author:
wonderboymusic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21267, comment 5

    v1 v2  
    66class MyClass2 { static function filter( $filter ) { error_log( 'called' ); return $filter; } } 
    77 
    8 $my_class_1 = new MyClass1; 
     8$my_class_1a = new MyClass1; 
     9$my_class_1b = new MyClass1; 
    910 
    1011add_filter( 'list_terms_exclusions', 'a_function' ); 
    11 add_filter( 'list_terms_exclusions', array( $my_class_1, 'filter' ) ); 
     12add_filter( 'list_terms_exclusions', array( $my_class_1a, 'filter' ) ); 
     13add_filter( 'list_terms_exclusions', array( $my_class_1b, 'filter' ) ); 
    1214add_filter( 'list_terms_exclusions', array( 'MyClass2', 'filter' ) ); 
    1315add_filter( 'list_terms_exclusions', 'MyClass2::filter' ); 
     
    1618print_r( $GLOBALS['wp_filter']['list_terms_exclusions'] ); 
    1719 
     20echo wp_filter_callbacks_hash( 'list_terms_exclusions' ); 
     21 
    1822get_terms( 'link_category' ); 
    1923exit();