WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#20562 closed defect (bug) (duplicate)

Table pagination does not respect WP_SITEURL

Reported by: e1ven 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'];

to-

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

Change History (1)

comment:1 @ocean903 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.