mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
Editor: do not send the request for releasing the post lock on unload when post_ID or active_post_lock is missing.
Props dlh, adamsilverstein. Fixes #38271. Built from https://develop.svn.wordpress.org/trunk@38772 git-svn-id: http://core.svn.wordpress.org/trunk@38715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
84de4937b1
commit
c69916d57d
@ -499,11 +499,18 @@ jQuery(document).ready( function($) {
|
||||
return;
|
||||
}
|
||||
|
||||
var postID = $('#post_ID').val();
|
||||
var postLock = $('#active_post_lock').val();
|
||||
|
||||
if ( ! postID || ! postLock ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var data = {
|
||||
action: 'wp-remove-post-lock',
|
||||
_wpnonce: $('#_wpnonce').val(),
|
||||
post_ID: $('#post_ID').val(),
|
||||
active_post_lock: $('#active_post_lock').val()
|
||||
post_ID: postID,
|
||||
active_post_lock: postLock
|
||||
};
|
||||
|
||||
if ( window.FormData && window.navigator.sendBeacon ) {
|
||||
|
2
wp-admin/js/post.min.js
vendored
2
wp-admin/js/post.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38771';
|
||||
$wp_version = '4.7-alpha-38772';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user