[wp-trac] [WordPress Trac] #38271: `wp-remove-post-lock` Ajax request generates notice in `wp_ajax_wp_remove_post_lock()`

WordPress Trac noreply at wordpress.org
Mon Oct 10 22:35:15 UTC 2016


#38271: `wp-remove-post-lock` Ajax request generates notice in
`wp_ajax_wp_remove_post_lock()`
--------------------------+-----------------------------------------
 Reporter:  dlh           |       Owner:  adamsilverstein
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.7
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript, administration
--------------------------+-----------------------------------------

Comment (by azaozz):

 > The attached patch would return before the Ajax request occurs in
 post.js

 Right, the first thing `wp_ajax_wp_remove_post_lock()` does is to return
 early when either post_ID or active_post_lock is empty. Can do the same in
 JS too.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38271#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list