xwp / wp-customize-snapshots

Customize Snapshots WordPress Plugin
https://wordpress.org/plugins/customize-snapshots/
52 stars 11 forks source link

Check nav menu post reference before garbage collect #133

Closed PatelUtkarsh closed 7 years ago

PatelUtkarsh commented 7 years ago

Check WP trac ticket: https://core.trac.wordpress.org/ticket/39715

Override core's delete_post filter PR https://github.com/xwp/wordpress-develop/pull/224/files And check for other references(In case of fork/merge snapshot) for nav_menus_created_posts's posts before deleting.

westonruter commented 7 years ago

@PatelUtkarsh your patch is now committed to trunk: https://core.trac.wordpress.org/changeset/40676

PatelUtkarsh commented 7 years ago

I will start working on PR to fix this issue.