#63 closed defect (bug) (fixed)
calling of user functions change
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | |
Component: | Administration | Keywords: | |
Focuses: | 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 (3)
Note: See
TracTickets for help on using
tickets.