Wordpress版本:4.7.5。
test1在publlish之前只包含一个bash命令。
排序-k2,2-k1,1<;人txt文件
显示如下。

test2在publish之前包含相同的bash命令,只需编写
< people.txt
像
<people.txt
,之间无空白
<
和
p
.
sort -k2,2 -k1,1 <people.txt
显示如下。
也许这是wordpress的一个bug?

最合适的回答,由SO网友:Morgan Estes 整理而成
发布帖子时,它会运行the_content()
通过过滤器去除不安全的HTML。解析器似乎认为<people.txt
是格式错误的HTML并将其删除。
改变<
到<
, 它是的HTML实体<
, 你应该能够发布文章并在前端正确查看。