#3975 closed defect (bug) (invalid)
Last argument in filters is not available
Reported by: | harkos | Owned by: | harkos |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.1.2 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
Working on a multilanguage plugin, I found that the last argument being passed to the called filter is not really being passed. Hacking through WP, I found out the slicing of the argument array is removing that argument. I simply increased the number of the last argument to slice and it worked. A patch to this is attached.
Attachments (2)
Change History (7)
#2
@
17 years ago
If you apply this patch, you should also apply the patch for default-filters.php from bug #3974, or you're going to get errors displaying single posts.
Note: See
TracTickets for help on using
tickets.
Patch to apply_filters()