Opened 3 years ago
Last modified 7 weeks ago
#59272 new defect (bug)
wp-admin search/column order not working when running not on port 80
| Reported by: | canic | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Administration | Version: | 6.3.1 |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: | administration |
Description
Hey,
we are currently running WP 6.3.1 internally on a different port ( localhost:8182 ).
WordPress itself works without problems.
Only when you on the wp-admin page search for a keyword in a CPT or change the order, the port gets deleted from the URL.
I found following part of the core source where the problem happens:
https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-wp-list-table.php#L1381
Would be nice to respect the site url from the settings or not delte the port when used.
Change History (5)
#2
@
5 months ago
Hi. I have tested this on WordPress 6.9.4 but was not able to reproduce it. Could you please confirm if you are still experiencing this issue on the latest WordPress release?
#3
@
2 months ago
Hi,
I have tested this on WordPress 6.9.5 but was not able to reproduce it. ( localhost:8182 ).
This ticket was mentioned in PR #13223 on WordPress/wordpress-develop by Bunnyandco.
7 weeks ago
#4
- Keywords has-patch has-unit-tests added; needs-patch removed
See https://core.trac.wordpress.org/ticket/59272
WordPress.org username: hell0bunny
WP_List_Table built search, sort, and pagination links from HTTP_HOST alone, which drops custom ports such as :8182 and breaks those admin actions.
Trac ticket:
## Use of AI Tools
#5
@
7 weeks ago
I've submitted a patch for this:
https://github.com/WordPress/wordpress-develop/pull/13223
WordPress.org username: hell0bunny
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Testing this against the
7.0-alpha-61215-srctrunk and it works fine on localhost:8889If I dump the
$current_urlvariable out, I'm getting:http://localhost:8889/wp-admin/edit.php?orderby=title&order=asc&s=test&post_status=all&post_type=test&action=-1&m=0&action2=-1
for the heading sort.
@canic This ticket is a few years old now. Is this still a problem you're encountering?