Closed joshbetz closed 5 months ago
It might make sense to queue this as a cron (or series of cron) that run after post-import cleanup.
On WordPress.com, we run do_shortcodes
on protected embeds. If we find any shortcodes in the protected embeds table, we can replace the post_content with the shortcode directly.
Some protected embeds are handled by core (i.e. youtube). We should reverse these whenever possible.
We have to be careful to make sure they actually match. Just because the domain matches doesn't mean the embed is exactly the same.
Suggest two pass system: