Redirect to new permalink if slug changes. Fixes #1068
git-svn-id: https://develop.svn.wordpress.org/trunk@2988 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5e3e5445e9
commit
114d19b144
|
@ -166,8 +166,12 @@ if ( 'publish' != $post->post_status || 0 == $post_ID ) {
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<input name="referredby" type="hidden" id="referredby" value="<?php echo wp_specialchars($_SERVER['HTTP_REFERER']); ?>" />
|
<input name="referredby" type="hidden" id="referredby" value="<?php
|
||||||
</p>
|
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'); ?>
|
<?php do_action('edit_form_advanced'); ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue