[wp-trac] Re: [WordPress Trac] #2858: Problem with wp_get_referer()

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 24 20:57:43 GMT 2006


#2858: Problem with wp_get_referer()
----------------------------+-----------------------------------------------
 Reporter:  tereshchenko    |        Owner:  anonymous
     Type:  defect          |       Status:  closed   
 Priority:  normal          |    Milestone:  2.0.4    
Component:  Administration  |      Version:  2.0.4    
 Severity:  normal          |   Resolution:  fixed    
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by markjaquith):

 Yeah, my bad.  That original patch wasn't quite ready for prime time. :-)

 The intention was for _wp_http_referer field to contain the URL of the
 current page (the referer, to the page the form submits to).
 _wp_original_http_referer is supposed to be used for cases where you do
 something like this:

  * Start at A
  * Go to B
  * Do foo at B
  * Do bar at B
  * return to A

 i.e. you're not going back one step, but back to a original step.  So
 that's the one that should be passed along, and _wp_http_referer should
 always be the previous page.

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


More information about the wp-trac mailing list