Make WordPress Core


Ignore:
Timestamp:
02/27/2006 05:15:13 AM (18 years ago)
Author:
ryan
Message:

Fix post save/delete redirects. fixes #2505 #2502

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r3563 r3571  
    108108        $location = 'attachments.php';
    109109    } else {
    110         $location = 'post.php';
     110        $location = 'post-new.php';
    111111    }
    112112    header ('Location: ' . $location); // Send user on their way while we keep working
     
    134134
    135135    $sendback = $_SERVER['HTTP_REFERER'];
    136     if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post.php';
     136    if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post-new.php';
    137137    elseif (strstr($sendback, 'attachments.php')) $sendback = get_settings('siteurl') .'/wp-admin/attachments.php';
    138138    $sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
Note: See TracChangeset for help on using the changeset viewer.