Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #21580, comment 11


Ignore:
Timestamp:
08/18/2012 05:21:34 PM (12 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21580, comment 11

    v1 v2  
    66> I suspect this is because the function is expecting 2 parameters but the action from old to new status only passes 1 variable - namely $post.
    77
    8 Yes, you need to tell add_filter how many parameters you want back:
     8Yes, you need to tell add_action() how many parameters you want back:
    99
    1010{{{