Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #29709


Ignore:
Timestamp:
09/19/2014 10:23:38 AM (10 years ago)
Author:
SergeyBiryukov
Comment:

When I'm not using query posts [REQUEST_URI] => /test/page/3/, but after using it I get [REQUEST_URI] => http://domainname.com/test/page/3/.

Could you provide a piece of code to reproduce the issue?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29709

    • Property Keywords reporter-feedback added
  • Ticket #29709 – Description

    initial v1  
    44The problem doesn't exist on every server and it only appers when you are using query_posts (probably new WP_query also).
    55
    6 A the start of get_pagenum_link() there is $request = remove_query_arg( 'paged' ); which gets data from $_SERVER. When I'm not using query posts [REQUEST_URI] => /test/page/3/ , but after using it I get [REQUEST_URI] => http://domainname.com/test/page/3/ .
     6A the start of get_pagenum_link() there is `$request = remove_query_arg( 'paged' );` which gets data from $_SERVER. When I'm not using query posts `[REQUEST_URI] => /test/page/3/`, but after using it I get `[REQUEST_URI] => http://domainname.com/test/page/3/`.
    77
    88I think there should be a check if REQUEST_URI doesn't contain domainname.