Ticket #63 (closed defect (bug): fixed)

Opened 8 years ago

Last modified 7 years ago

calling of user functions change

Reported by: billzeller Owned by: ryan
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

comment:2   ryan8 years ago

  • Owner changed from anonymous to rboren
  • Status changed from new to closed
  • Resolution changed from 10 to 20
Note: See TracTickets for help on using tickets.