Define ajaxurl in the customizer.

props celloexpressions.
see #25866.

git-svn-id: https://develop.svn.wordpress.org/trunk@26082 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-11-11 15:46:36 +00:00
parent a2aed7b119
commit adb2e127c1
1 changed files with 6 additions and 1 deletions

View File

@ -74,8 +74,13 @@ if ( is_rtl() )
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
$admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) );
?><title><?php echo $admin_title; ?></title><?php
?><title><?php echo $admin_title; ?></title>
<script type="text/javascript">
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>';
</script>
<?php
/**
* Print Customizer control styles.
*