[wp-trac] [WordPress Trac] #42840: New plugin / theme editor wp_ajax_ save hook not working or inexistent
WordPress Trac
noreply at wordpress.org
Fri Dec 8 18:22:55 UTC 2017
#42840: New plugin / theme editor wp_ajax_ save hook not working or inexistent
---------------------------+------------------------------
Reporter: cristianuibar | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.9.1
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by birgire):
@cristianuibar Welcome to trac
I think you need to use priority <= 1, because the default callback for
the {{{wp_ajax_edit-theme-plugin-file}}} action, calls
{{{wp_send_json_success()}}} or {{{wp_send_json_error()}}} that implicitly
calls {{{die()}}}.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42840#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list