Redirect to new permalink if slug changes. Fixes #1068
git-svn-id: http://svn.automattic.com/wordpress/trunk@2988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7bf19367e7
commit
9c88f3968e
|
@ -166,8 +166,12 @@ if ( 'publish' != $post->post_status || 0 == $post_ID ) {
|
|||
<?php
|
||||
}
|
||||
?>
|
||||
<input name="referredby" type="hidden" id="referredby" value="<?php echo wp_specialchars($_SERVER['HTTP_REFERER']); ?>" />
|
||||
</p>
|
||||
<input name="referredby" type="hidden" id="referredby" value="<?php
|
||||
if ( url_to_postid($_SERVER['HTTP_REFERER']) == $post_ID )
|
||||
echo 'redo';
|
||||
else
|
||||
echo wp_specialchars($_SERVER['HTTP_REFERER']);
|
||||
?>" /></p>
|
||||
|
||||
<?php do_action('edit_form_advanced'); ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue