From just looking at your snippet you're not actually setting $post_revisions to any value before assigning it to your $post_data array

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.