Issue with wp_insert_post() when post_content contains links?

After a little more debugging I realized the problem was being caused by another file in my plugin and the above wp_insert_post() code above is working correctly. I guess that explains why I couldn’t find anyone else having this problem.

So the CORRECT ANSWER is… if you are working on a plugin and all else fails, try deactivating your plugin to see if the issue goes away.

On a side note, it’s always amazing how sometimes just taking the time to type out your problem in question form helps you to solve your own problems. 🙂