zero dates after running UPDATE funtion
-
I have multiple authors that I run a “mass approval” query to posts all of their entries once a week:
UPDATE wp_posts SET post_status = ‘publish’ WHERE post_status = ‘draft’;
This has a very strange side effect though. The posts dates all become “0000-00-00 00:00:00” only on the entries effected by the querey. Running a second querey:
UPDATE wp_posts SET post_date = ‘2006-10-22 19:00:00’ WHERE post_date = ‘0000-00-00 00:00:00’;
…does correct the problem, but why is this happening in the first place? I would aprove the posts manually if I could, but there are typically over 100 of them so its pretty tiresome.
Any ideas?
Thanks!
Boutwell
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘zero dates after running UPDATE funtion’ is closed to new replies.