产品自己的博客WordPress定期发表草稿的文章突然失败了。我不知道问题出在哪里了很长时间。让我们谈谈每个人都在网上使用的解决方案。目前,每个人都使用以下两种解决方案:
一、修改 cron.php默认发布文件的时间
用 notedpad 或者相关工具打开 wp-includes 目录下的 cron.php 并编辑文件。
在cron.php在文件中搜索 timeout,代码后面的值0.01修改为10.00就可以了。值不一定是10,只要比0.01大就可以了。923行左右,’timeout’ => 0.01改为’timeout’ => 10。
$cron_request = apply_filters(cron_request,array(url => add_query_arg( doing_wp_cron,$doing_wp_cron,site_url( wp-cron.php key => $doing_wp_cron,args => array「timeout =>十blocking => false,/** This filter is documented in wp-includes/class-wp-http-streams.php *「sslverify => apply_filters( https_local_ssl_verify,false」$doing_wp_cron
通过自己的博客实测,这种方法不可行,以失败告终。
二、通过安装插件解决
推荐两个插件WP Missed Schedule post或者 easy-schedule-post
我们自己安装的产品是WP missed Schedule post本插件安装启用后,先前定期发布的文章将立即发布。
安装插件的方法可行。
如果觉得《WordPress网站定期发布草稿文章失败解决方案》对你有帮助,请点赞、收藏,并留下你的观点哦!