Fix bulk edit and preview url
git-svn-id: https://develop.svn.wordpress.org/trunk@9453 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
acf73adf61
commit
9baa38326e
|
@ -66,7 +66,7 @@ inlineEditPost = {
|
|||
}
|
||||
});
|
||||
|
||||
$('#posts-filter input[type="submit"]').click(function(e){
|
||||
$('#post-query-submit').click(function(e){
|
||||
if ( $('form#posts-filter tr.inline-editor').length > 0 )
|
||||
t.revert();
|
||||
});
|
||||
|
|
|
@ -233,9 +233,9 @@ case 'preview':
|
|||
|
||||
if ( $_POST['post_status'] == 'publish' ) {
|
||||
$nonce = wp_create_nonce('post_preview_' . $id);
|
||||
$url = site_url('?wp_preview=' . $id . '&preview_nonce=' . $nonce);
|
||||
$url = get_option('home') . '/?wp_preview=' . $id . '&preview_nonce=' . $nonce;
|
||||
} else {
|
||||
$url = site_url('?p=' . $id . '&preview=true');
|
||||
$url = get_option('home') . '/?p=' . $id . '&preview=true';
|
||||
}
|
||||
|
||||
wp_redirect($url);
|
||||
|
|
Loading…
Reference in New Issue