WordPress“有新的翻译可用”解决办法
LNMP的服务器装了WordPress以后,默认是英文的,改成中文显示就一直提示“有新的翻译可用”。查了下,在一个博客找到解决办法,也总结过来:
打开php.ini 搜索 disable_functions 然后找到 scandir 删除保存,重启PHP
然后再到仪表盘更新一下翻译,就可以了。
注:LNMP配置的环境php.ini位于
1 |
/usr/local/php/etc/php.ini |
1 2 3 4 5 |
disable_functions = passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv ; This directive allows you to disable certain classes for security reasons. ; It receives a comma-delimited list of class names. ; http://php.net/disable-classes |
提示:宝塔面板默认是没有这个函数的 如果还提示更新翻译 请删除或更新相应的插件 看语言包前缀