[wp-trac] [WordPress Trac] #29591: Using $wp->request in AJAX does not reflect the correct request

WordPress Trac noreply at wordpress.org
Tue Sep 9 09:00:24 UTC 2014


#29591: Using $wp->request in AJAX does not reflect the correct request
--------------------------+------------------------------
 Reporter:  ZaneMatthew   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Description changed by ocean90:

Old description:

> Should $wp->request be adjusted to return the requested URL for AJAX
> request or is this the intended behavior?
>
> For example if you are on http://mypage.com/page-a/ and make an AJAX
> request, then $wp->request is set to '', but it should be set to:
> 'page-a'.

New description:

 Should $wp->request be adjusted to return the requested URL for AJAX
 request or is this the intended behavior?

 For example if you are on http://mypage.com/page-a/ and make an AJAX
 request, then $wp->request is set to `''`, but it should be set to:
 `'page-a'`.

--

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


More information about the wp-trac mailing list