As `wp_insert_post()` can return an error for various reasons, this commit ensures that this scenario is properly handled and an error message is displayed. Follow-up to [12987]. Props rishabhwp, tfrommen, SirLouen, siliconforks, SergeyBiryukov. Fixes #37441. Built from https://develop.svn.wordpress.org/trunk@60701 git-svn-id: http://core.svn.wordpress.org/trunk@60037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
80 KiB
80 KiB