Fix add custom field redirects. Props pishmishy. fixes #2788

git-svn-id: https://develop.svn.wordpress.org/trunk@6816 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-13 18:10:41 +00:00
parent ef77993bdc
commit 7886e5c6e0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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