From f77f58e7cb522cac0d9f513ba07d718d40aedf73 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 13 Feb 2008 18:10:41 +0000 Subject: [PATCH] Fix add custom field redirects. Props pishmishy. fixes #2788 git-svn-id: http://svn.automattic.com/wordpress/trunk@6816 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/page.php | 2 +- wp-admin/post.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/page.php b/wp-admin/page.php index b3ff22cc71..1a27998fd7 100644 --- a/wp-admin/page.php +++ b/wp-admin/page.php @@ -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'; diff --git a/wp-admin/post.php b/wp-admin/post.php index ea1336a40d..630f142780 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -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';