mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Post and page edit redirect fixes. fixes #6720 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7759 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+3
-1
@@ -10,8 +10,10 @@ function redirect_post($post_ID = '') {
|
||||
global $action;
|
||||
|
||||
$referredby = '';
|
||||
if ( !empty($_POST['referredby']) )
|
||||
if ( !empty($_POST['referredby']) ) {
|
||||
$referredby = preg_replace('|https?://[^/]+|i', '', $_POST['referredby']);
|
||||
$referredby = remove_query_arg('_wp_original_http_referer', $referredby);
|
||||
}
|
||||
$referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer());
|
||||
|
||||
if ( !empty($_POST['mode']) && 'bookmarklet' == $_POST['mode'] ) {
|
||||
|
||||
Reference in New Issue
Block a user