Fix bulk edit and preview url
git-svn-id: http://svn.automattic.com/wordpress/trunk@9453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1e4e3ec57e
commit
8c92b61171
|
@ -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