[wp-trac] [WordPress Trac] #58161: WordPress post editor pagination uses inconsistent URL variable to rest of site

WordPress Trac noreply at wordpress.org
Thu Apr 20 02:24:16 UTC 2023


#58161: WordPress post editor pagination uses inconsistent URL variable to rest of
site
--------------------------+------------------------------
 Reporter:  roballshouse  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Description changed by sabernhardt:

Old description:

> /wp-admin/edit.php
>
> uses functions in class-wp-list-table.php
>
> Which uses
> $current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] .
> $_SERVER['REQUEST_URI'] );
>
> While all other pages use
> WP_SITE_URL
>
> Thus, when in the post editor, the "Next page" goes to (in my case)
> https://127.0.0.1:8090/wp-admin/edit.php?paged=2, instead of to <my_url
> >/wp-admin/edit.php?paged=2 like the rest of wp_admin

New description:

 `/wp-admin/edit.php`

 uses functions in `class-wp-list-table.php`

 Which uses
 `$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] .
 $_SERVER['REQUEST_URI'] );`

 While all other pages use
 `WP_SITE_URL`

 Thus, when in the post editor, the "Next page" goes to (in my case)
 `https://127.0.0.1:8090/wp-admin/edit.php?paged=2`, instead of to `<my_url
 >/wp-admin/edit.php?paged=2` like the rest of `wp_admin`

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58161#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list