Skip to content

Commit adb2e12

Browse files
Define ajaxurl in the customizer.
props celloexpressions. see #25866. git-svn-id: https://develop.svn.wordpress.org/trunk@26082 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a2aed7b commit adb2e12

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/wp-admin/customize.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,13 @@
7474
$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
7575

7676
$admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) );
77-
?><title><?php echo $admin_title; ?></title><?php
77+
?><title><?php echo $admin_title; ?></title>
7878

79+
<script type="text/javascript">
80+
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>';
81+
</script>
82+
83+
<?php
7984
/**
8085
* Print Customizer control styles.
8186
*

0 commit comments

Comments
 (0)