简易方法

在wp-includes目录内找到post.php,搜索以下内容: $postarr = sanitize_post($postarr, 'db'); 注释掉,就可以了。
wordpress用久了就会自动升级,post.php文件就会被覆盖,对于大量采集的网站来说, 这个修改必须重新做

如果嫌麻烦,还有下面的

实时替换方法

火车内容字段添加替换规则
将字符串
href="magnet:?
替换为
href="http://magnet:?
然后将下面的代码加入到你正在使用的主题文件里functions.php底部即可

function fixmagnetlink($text) {
$return = str_replace('http://magnet:?', 'magnet:?', $text);
return $return;
}
add_filter('the_content', 'fixmagnetlink');

迅雷前缀同理操作


标签:


文章类别:

本文链接: http://www.books51.com/433474.html

【点击下方链接,复制 & 分享文章网址】

wordpress用火车头批量发布[磁力链]和[迅雷]链接时,会被自动去掉头部前缀的解决办法 → http://www.books51.com/433474.html

上一篇:

下一篇:

0 ratings, 0 votes0 ratings, 0 votes (0 次顶, 0已投票)
你必须注册后才能投票!
Loading...

添加新评论