mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Use relative paths for admin-ajax.php to avoid cross-domain issues with IDN domains in IE and Opera. props SergeyBiryukov, fixes #18952.
git-svn-id: https://develop.svn.wordpress.org/trunk@19871 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -584,7 +584,7 @@ final class _WP_Editors {
|
||||
}
|
||||
|
||||
if ( !is_admin() )
|
||||
echo 'var ajaxurl = "' . admin_url('admin-ajax.php') . '";';
|
||||
echo 'var ajaxurl = "' . admin_url( 'admin-ajax.php', 'relative' ) . '";';
|
||||
?>
|
||||
</script>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user