[wp-trac] [WordPress Trac] #20562: Table pagination does not respect WP_SITEURL (was: Table pagination does not respect WP_SITEURL. fix included.)
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 27 21:42:34 UTC 2012
#20562: Table pagination does not respect WP_SITEURL
--------------------------+------------------------
Reporter: e1ven | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: duplicate
Keywords: |
--------------------------+------------------------
Changes (by ocean90):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Old description:
> 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'];
New description:
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'];`
--
Comment:
#19216 (and #18944)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20562#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list