ZPY博客

wordpress插件报错 load_plugin_textdomain was called with an argument that is deprecated since version 2 7 0 with no alternative available in

---
title: "wordpress插件报错: load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available. in"
date: 2018-12-07 16:38:11
categories: wordpress
tags:
- 报错
- wordpress
- load_plugin_textdomain
- 插件
- version
- argument
- deprecated
- 2.7.0
- alternative
- available
- functions.php
---

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');

即可。