Opened 11 years ago
Last modified 7 years ago
#35466 new defect (bug)
`add_filter()` errors when `spl_object_hash()` not exists
| Reported by: | yaquawa | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 4.4.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
add_filter() will errors when the following conditions are met.
$function_to_addis Closurespl_object_hashfunction not exists
For example:
add_filter( 'template_include', function($args){
return $args;
},90 );
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This has previously been discussed in #10535. Duplicate?