[wp-trac] [WordPress Trac] #17628: Fix $sendback for post row actions when no HTTP_REFERER is found

WordPress Trac wp-trac at lists.automattic.com
Tue May 31 19:06:32 UTC 2011


#17628: Fix $sendback for post row actions when no HTTP_REFERER is found
-----------------------------+-----------------------------
 Reporter:  mitchoyoshitaka  |      Owner:  mitchoyoshitaka
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Administration   |    Version:
 Severity:  normal           |   Keywords:  has-patch
-----------------------------+-----------------------------
 On a system which doesn't properly project HTTP_REFERERs, the post row
 actions such as "delete", "restore", etc. will send the user back to
 post.php *without* the relevant post_type set, so a user can be managing
 pages or a custom post type and get kicked over to the general post.php.

 Along the way, I discovered that the logic of wp_get_http_referer
 (introduced in r7438) didn't really make sense... in particular, if no
 HTTP_REFERER or _wp_http_referer is found, it will return an empty string
 instead of false. Discussed this with nacin and duck_ on irc and the
 correction for this is also included in the patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17628>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list