Many community plugin still have deprecated code. I know about it, but I'm working on other stuff at the moment, and in the meantime my apache logs are just being filled with them on every pageload.
//hook handling register should be in the global scope outside of your init function
// otherwise it will miss any deprecation inside plugins that init before yours
elgg_register_plugin_hook_handler('debug', 'log', 'myplugin_deprecation_log');
function myplugin_deprecation_log($hook, $type, $returnvalue, $params){
// look to see if it's a deprecation notice, if so return false
if($params['level'] == 'WARNING' && !$params['to_screen'] && substr($params['msg'], 0, 13) == 'Deprecated in'){
return FALSE;
}
}
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.