Ticket #2788: 2788.2.diff
File 2788.2.diff, 994 bytes (added by , 17 years ago) |
---|
-
post.php
126 126 $referredby = preg_replace('|https?://[^/]+|i', '', $_POST['referredby']); 127 127 $referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer()); 128 128 129 if ($_POST['add emeta']) {129 if ($_POST['addmeta']) { 130 130 $location = add_query_arg( 'message', 2, wp_get_referer() ); 131 131 $location = explode('#', $location); 132 132 $location = $location[0] . '#postcustom'; -
page.php
110 110 } else { 111 111 if ($_POST['save']) { 112 112 $location = "page.php?action=edit&post=$page_ID"; 113 } elseif ($_POST['add emeta']) {113 } elseif ($_POST['addmeta']) { 114 114 $location = add_query_arg( 'message', 2, wp_get_referer() ); 115 115 $location = explode('#', $location); 116 116 $location = $location[0] . '#postcustom';