update wp_posts set post_content=replace(post_content,’http://lh’,’https://lh’);
select id from wp_posts where post_status=’trash’;
+——+
| id |
+——+
| 5676 |
| 5677 |
| 5679 |
| 5680 |
+——+
4 rows in set (0.00 sec)
update wp_comments set comment_post_ID=2634 where comment_post_ID in (5676,5677,5679,5680);
结果显示4条记录被操作,表明删除的4篇帖子中共有4条留言被移动到新帖中。
update wp_posts set comment_count=comment_count+4 where ID=2634;
update wp_comments set comment_approved=’1′ where comment_approved=’post-trashed’;
This website uses cookies.