Join GitHub today
Feature: Allow publishing from preview #115
Yes, that's perfect.
If I understand right, this is the exact same problem that you've patched for core, right? In other words: https://core.trac.wordpress.org/ticket/39221
The issue is that Ajax requests on the frontend get the
So if you can prevent this from happening via another
Another option, perhaps a better one, would be to eliminate the Ajax request entirely in favor of just linking to an admin URL that would be responsible for publishing the changeset. In other words, it could be a
This would avoid having to try to override the