Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#22918 closed enhancement (invalid)

Allow to include ajax url javascript argument in the template header

Reported by: alexvorn2's profile 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)

#1 @SergeyBiryukov
11 years 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.

#2 @c3mdigital
11 years ago

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

#3 @helen
11 years ago

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