Skip to content

Commit ad74528

Browse files
simplify current URL generation
1 parent a463271 commit ad74528

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/wp-admin/includes/class-wp-list-table.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,9 +1040,7 @@ protected function pagination( $which ) {
10401040
$current = $this->get_pagenum();
10411041
$removable_query_args = wp_removable_query_args();
10421042

1043-
$current_url = set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
1044-
1045-
$current_url = remove_query_arg( $removable_query_args, $current_url );
1043+
$current_url = remove_query_arg( $removable_query_args );
10461044

10471045
$page_links = array();
10481046

0 commit comments

Comments
 (0)