WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/27/2008 05:46:01 PM (14 years ago)
Author:
ryan
Message:

First cut and better admin SSL support. see #7001

File:
1 edited

Legend:

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

    r7961 r7998  
    160160
    161161    $sendback = wp_get_referer();
    162     if (strpos($sendback, 'post.php') !== false) $sendback = get_option('siteurl') .'/wp-admin/post-new.php';
    163     elseif (strpos($sendback, 'attachments.php') !== false) $sendback = get_option('siteurl') .'/wp-admin/attachments.php';
     162    if (strpos($sendback, 'post.php') !== false) $sendback = admin_url('post-new.php');
     163    elseif (strpos($sendback, 'attachments.php') !== false) $sendback = admin_url('attachments.php');
    164164    $sendback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $sendback);
    165165    wp_redirect($sendback);
Note: See TracChangeset for help on using the changeset viewer.