Друзья, подскажите как исправить ошибку PHP Notice: Undefined property в плагине-переводчике Loco для WordPress?
[13-Feb-2018 19:53:00 UTC] PHP Notice: Undefined property: Loco_hooks_AdminHooks::$router in /home/www/wp-content/plugins/loco-translate/src/hooks/AdminHooks.php on line 59
**
* "admin_menu" callback.
*/
public function on_admin_menu(){
// This earliest we need translations, and admin user locale should be set by now
if( $this->router ){ << 59 строка
$domainPath = dirname( loco_plugin_self() ).'/languages';
load_plugin_textdomain( 'loco-translate', false, $domainPath );
}
// Unhook failure notice that would fire if this hook was not successful
remove_action( 'admin_notices', array(__CLASS__,'print_hook_failure') );
}