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:
azaozz 2008-11-01 01:15:22 +00:00
parent 1e4e3ec57e
commit 8c92b61171
2 changed files with 3 additions and 3 deletions

View File

@ -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();
});

View File

@ -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);