WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#22918 new enhancement

Allow to include ajax url javascript argument in the template header

Reported by: alexvorn2 Owned by:
Priority: normal Milestone: Awaiting Review
Component: Template Version: 3.5
Severity: normal Keywords: close
Cc:

Description

in the admin-header.php we have a hardcoded javascript code for showing the ajax url in the header. I think this should be included in a function and enqueue when needed, allowing to include it in the template header too using only: wp_enqueue_script('load-ajax-url');

Change History (1)

comment:1 SergeyBiryukov6 months ago

  • Keywords close added

The code in question:
http://core.trac.wordpress.org/browser/tags/3.5/wp-admin/admin-header.php#L51

So, wp_enqueue_script('load-ajax-url') alone doesn't seem feasible.

Note: See TracTickets for help on using tickets.