Opened 4 months ago
Last modified 9 days ago
#23265 closed enhancement
Canonical callback representation — at Initial Version
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Plugins | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | info@… |
Description
Since PHP 5.3, you have various ways of passing the same callback:
add_action( 'the_content', array( 'My_Plugin_Main_Class', 'the_content' ) ); add_action( 'the_content', 'My_Plugin_Main_Class::the_content' ); add_action( 'the_content', '\\My_Plugin_Main_Class::the_content' );
Currently, you have to use the exact same syntax in remove_action(), or it won't work.
It would be nice if _wp_filter_build_unique_id() converted all these variations to a canonical representation.
Note: See
TracTickets for help on using
tickets.
