mirror of
https://github.com/10h30/trestle.git
synced 2026-06-05 15:09:35 +09:00
26df40ef61
Previously, the trestle_tiny_mce_before_init filter was causing a fatal error when it was trying to call get_current_screen() on the front-end, which isn't availably unless /wp-admin/includes/screen.php is included, which it isn't on the front end. This patch switches from checking the current screen to simply checking if the post object exists. Not sure if there are any edge cases where the current screen check does something the post check doesn't - I'll leave that to you @braad to decide as I think you added this code.