[wp-trac] [WordPress Trac] #20562: Table pagination does not respect WP_SITEURL. fix included.

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 27 21:36:10 UTC 2012


#20562: Table pagination does not respect WP_SITEURL. fix included.
--------------------------+-----------------------------
 Reporter:  e1ven         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The pagination, such as when you move through multiple pages of posts,
 uses the requested URL, which does not always match the specified URL in
 wp-config.
 This causes a problem when wordpress is behind a proxy, for instance.

 This can be easily fixed.

 In wp-admin/includes/class-wp-list-table.php
 On line 492:

 Change -

     $current_url = ( is_ssl() ? 'https://' : 'http://' ) .
 $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];



 to-

     $current_url = bloginfo('url') . $_SERVER['REQUEST_URI'];

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


More information about the wp-trac mailing list