Fix add custom field redirects. Props pishmishy. fixes #2788
git-svn-id: http://svn.automattic.com/wordpress/trunk@6816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1bb2ce0e08
commit
f77f58e7cb
|
@ -110,7 +110,7 @@ case 'editpost':
|
|||
} else {
|
||||
if ($_POST['save']) {
|
||||
$location = "page.php?action=edit&post=$page_ID";
|
||||
} elseif ($_POST['addemeta']) {
|
||||
} elseif ($_POST['addmeta']) {
|
||||
$location = add_query_arg( 'message', 2, wp_get_referer() );
|
||||
$location = explode('#', $location);
|
||||
$location = $location[0] . '#postcustom';
|
||||
|
|
|
@ -126,7 +126,7 @@ case 'editpost':
|
|||
$referredby = preg_replace('|https?://[^/]+|i', '', $_POST['referredby']);
|
||||
$referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer());
|
||||
|
||||
if ($_POST['addemeta']) {
|
||||
if ($_POST['addmeta']) {
|
||||
$location = add_query_arg( 'message', 2, wp_get_referer() );
|
||||
$location = explode('#', $location);
|
||||
$location = $location[0] . '#postcustom';
|
||||
|
|
Loading…
Reference in New Issue