Skip to content

Commit a250e4f

Browse files
committed
git-svn-id: https://develop.svn.wordpress.org/trunk@2412 602fd350-edb4-49c9-b593-d223f7449a82
1 parent bab84dc commit a250e4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wp-admin/edit-page-form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
$sendto = $_SERVER['HTTP_REFERER'];
1414

15-
if ( $sendto == get_permalink($post) )
16-
$sendto = 'redo';
15+
if ( 0 != $post_ID && $sendto == get_permalink($post_ID) )
16+
$sendto = 'redo';
1717
$sendto = wp_specialchars( $sendto );
1818

1919
?>

0 commit comments

Comments
 (0)