ZPY博客

wordpress插件报错: load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available. in

wordpress某插件启用后报错: load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available. in /home/zpycloud/public_html/wp-includes/functions.php on line 4048

解决方法:

找到插件的php文件(注意不是上面报错的php文件),将代码里的

load_plugin_textdomain('easy2hide', PLUGINDIR . '/' . dirname(plugin_basename(__FILE__)) . '/lang');

改为

load_plugin_textdomain('easy2hide', false, PLUGINDIR . '/' . dirname(plugin_basename(__FILE__)) . '/lang');

即可。