Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#20562 closed defect (bug) (duplicate)

Table pagination does not respect WP_SITEURL

Reported by: anonymized_8193417's profile anonymized_8193417 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description (last modified by ocean90)

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'];


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

Change History (1)

#1 @ocean90
12 years ago

  • Description modified (diff)
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Summary changed from Table pagination does not respect WP_SITEURL. fix included. to Table pagination does not respect WP_SITEURL

#19216 (and #18944)

Note: See TracTickets for help on using tickets.