We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inc\fun\opt.php
pk_is_cur_site
pk_go_link
pk_content_addlink
原函数:
//检测链接是否属于本站 function pk_is_cur_site($url) { if (str_starts_with($url, home_url()) === 0) { return true; } return false; }
修改后的函数
//检测链接是否属于本站 function pk_is_cur_site($url) { return str_starts_with($url, home_url()); }
The text was updated successfully, but these errors were encountered:
🐛 修复判断是否为本站链接函数 #435
b34c923
No branches or pull requests
inc\fun\opt.php
的pk_is_cur_site
函数返回值存在错误。pk_go_link
、pk_content_addlink
函数检测时,属于本站链接在正文中也会进入跳转界面进行确认,而非直接进行跳转。str_starts_with()函数返回的是布尔值,而不是数值,所以不应该与0进行比较。
该错误会导致“正文内容链接加跳转”
inc\fun\opt.php
中的pk_is_cur_site
函数按照如下修改原函数:
修改后的函数
The text was updated successfully, but these errors were encountered: