[wp-trac] [WordPress Trac] #18944: wrong url in sortable column headers when behind a reverse proxy

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 22 12:04:47 UTC 2012


#18944: wrong url in sortable column headers when behind a reverse proxy
-------------------------------+------------------------------
 Reporter:  gamboz             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.3.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by CircaLucid):

 * version:  3.2.1 => 3.3.1


Comment:

 I have the same issue. I have my apache server behind an nginx proxy.

 *** The rest of the site uses the correct URL via site_url(), so there's
 no reason this function should deviate. ***

 Here's a fix as of 3.3.1 that I've tested on the plugins page:
 {{{
 *** class-wp-list-table.php     2012-03-22 07:53:09.898792699 -0400
 --- class-wp-list-table.php.bak 2012-03-22 07:46:39.742794005 -0400
 *************** class WP_List_Table {
 *** 492 ****
 !               $current_url = site_url() . $_SERVER['REQUEST_URI'];
 --- 492 ----
 !               $current_url = ( is_ssl() ? 'https://' : 'http://' ) .
 $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
 *************** class WP_List_Table {
 *** 651 ****
 !               $current_url = site_url() . $_SERVER['REQUEST_URI'];
 --- 651 ----
 !               $current_url = ( is_ssl() ? 'https://' : 'http://' ) .
 $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18944#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list