
WordPress 升级到 6.3 后,一些使用火车头发布模块的朋友,会自动把文章发布到页面下面,而非文章下面。
出现问题原因: WordPress 内核升级到 6.3 后,$post_type被作为全局变量了,在火车头发布接口内的 post_type 被默认成了page,最终导致文章被发布到了page页面下。
解决方法:如果不需要发布到其他地方,可以打开火车头发布接口文件,搜索post_type替换成其他任意字符串即可,替换成post_type2即可。
- All rights reserved.
- No part of this website, including text and images, may be reproduced, modified, distributed, or transmitted in any form or by any means, without the prior written permission of the author.
- Unauthorized commercial use is strictly prohibited.
- Unauthorized personal use is strictly prohibited.