[wp-trac] [WordPress Trac] #35466: `add_filter()` errors when `spl_object_hash()` not exists
WordPress Trac
noreply at wordpress.org
Fri Jan 15 05:06:38 UTC 2016
#35466: `add_filter()` errors when `spl_object_hash()` not exists
--------------------------+-----------------------------
Reporter: yaquawa | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.4.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
`add_filter()` will errors when the following conditions are met.
1. `$function_to_add` is Closure
2. `spl_object_hash` function not exists
For example:
{{{
add_filter( 'template_include', function($args){
return $args;
},90 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35466>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list