Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#47356 closed defect (bug) (duplicate)

WP Admin Sortable Columns Have Wrong Link

Reported by: kwhat Owned by:
Milestone: Priority: normal
Severity: minor Version: 5.2.1
Component: Administration Keywords:
Focuses: Cc:



Thank you for taking the time to review my bug report. I recently noticed that our WordPress install is linking to the wrong url on the wp-admin/edit.php section. If you examine the lists column header for sortable links, you will notice that they have the wrong link under some circumstances. I have tracked the issue back to wp-admin/includes/class-wp-list-table.php:798 $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); Shouldn't this url come from admin_url() or similar function? At the very least, this url should detect (and use) https when available. I can submit a patch if it would be helpful, however, I would first like to confirm that this is indeed an issue and, if so, ask how you would like to resolve it.


Change History (1)

#1 @SergeyBiryukov
2 years ago

  • Keywords needs-patch needs-design-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @kwhat, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #36201.

Note: See TracTickets for help on using tickets.