Undefined array key “delete”
-
Since the recent release, there appears to be the addition of the clear_cache_locale(). This seems to be causing the following error:
Undefined array key “delete”
And can be traced back to the class_language.php file, line 40:public function clear_cache_locale( $locale ){
wp_cache_delete( ‘trp_locale’ );
remove_filter(‘locale’, array(#this, ‘clear_cache_locale’), 99998);
remove_filter(‘plugin_locale’, array($this, ‘clear_cache_locale’), 99998);
return $locale;
}
My guess is it has something to do with trp_local not existing prior to deleting or it’s a typo, as I cannot find reference to it anywhere in the plugin or online.
The topic ‘Undefined array key “delete”’ is closed to new replies.