提交 a0bd195f 编写于 作者: J jianbo

修复“猜你喜欢”的一处bug

函数get_client_ip改名为ram_get_client_ip ,避免和其他的插件重名冲突
上级 8965ba63
......@@ -138,7 +138,7 @@ class RAM_REST_Comments_Controller extends WP_REST_Controller{
$userid=isset($request['userid'])?(int)$request['userid']:0; //被回复者
$formId =isset($request['formId'])?$request['formId']:"";
$authorIp =get_client_ip();
$authorIp =ram_get_client_ip();
$authorIp= empty($authorIp)?'':$authorIp;
$wf_enable_comment_check= get_option('wf_enable_comment_check');
......
......@@ -440,7 +440,7 @@ function decrypt_data( $appid, $sessionKey, $encryptedData, $iv, &$data ) {
return $errors['OK'];
}
function get_client_ip()
function ram_get_client_ip()
{
foreach (array(
'HTTP_CLIENT_IP',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册