Ticket #63 (closed defect (bug): fixed)
calling of user functions change
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | |
| Severity: | minor | Keywords: | |
| Cc: |
Description
On line 1093 on wp-includes/functions.php in function apply_filters, the line
$string = $function($string);
should be
$string = call_user_func($function, $string);
This would allow actions to be set as either add_action('publish_post', 'myFunction'); or add_action('publish_post', array('MyClass', 'myFunction'));
Existing plugins would work with this change.
Change History
Note: See
TracTickets for help on using
tickets.
