[NSFW] out of memory becasue of endless loop
-
wp-content/plugins/events-manager/events-manager.php
if( EM_MS_GLOBAL ){
add_filter(‘pre_option_dbem_categories_enabled’, array(&$this,
‘pre_option_dbem_categories_enabled’), 1,1);
}Above code will cause endless loop, because in the function of get_options, the hook filter will be applied again to call itself, how to avoid this problem?
Here are related line in get_option function.
$pre = apply_filters( “pre_option_{$option}”, false, $option, $default );Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[NSFW] out of memory becasue of endless loop’ is closed to new replies.