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: |
|
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');
Note: See
TracTickets for help on using
tickets.
The code in question:
http://core.trac.wordpress.org/browser/tags/3.5/wp-admin/admin-header.php#L51
http://codex.wordpress.org/AJAX_in_Plugins#Ajax_on_the_Viewer-Facing_Side
So, wp_enqueue_script('load-ajax-url') alone doesn't seem feasible.