Forums
(@joshlevinson)
11 years, 11 months ago
Released! Thanks guys!
Care to share?
Figured it out. In my function, I was calling wp_update_post, which calls save_post. Elsewhere, I had added an action to save_post which was overwriting the data.
More readable pastebin, without PHP syntax highlighting: https://pastebin.com/jYjuzg6G
Forgot to add, using WP 3.4.2.
12 years ago
I can confirm that the problem is with revisions, as when I disable revisions (in wp-config), the code functions as desired.
14 years, 1 month ago
Thanks for both responses – it was the cache. I had cleared the cache from within chrome but that must not have solved the problem.