Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#63 closed defect (bug) (fixed)

calling of user functions change

Reported by: billzeller Owned by: ryan
Milestone: Priority: normal
Severity: minor Version:
Component: Administration Keywords:
Focuses: Cc:


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');
add_action('publish_post', array('MyClass', 'myFunction'));

Existing plugins would work with this change.

Change History (3)

comment:2 ryan10 years ago

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