[wp-trac] [WordPress Trac] #39003: menu_page_url() not working on Ajax call

WordPress Trac noreply at wordpress.org
Thu Dec 1 13:50:40 UTC 2016


#39003: menu_page_url() not working on Ajax call
--------------------------+-----------------------------
 Reporter:  vinoth06      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 `menu_page_url( 'menu_slug', false )` is always returning empty string on
 AJAX response. The `global $_parent_pages;` is return NULL on AJAX call.
 But the same menu slug is working on normal page load.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39003>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list