WordPress.org

Make WordPress Core

Opened 17 months ago

Closed 9 months ago

Last modified 9 months ago

#22918 closed enhancement (invalid)

Allow to include ajax url javascript argument in the template header

Reported by: alexvorn2 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: Template Keywords: close
Focuses: 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 (3)

comment:1 SergeyBiryukov16 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.

comment:2 c3mdigital9 months ago

  • Resolution set to invalid
  • Status changed from new to closed

comment:3 helen9 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.