IDN AJAX Workaround

Fixes AJAX requests on sites with IDN domains in IE and Opera.

Author:Sergey Biryukov (profile at wordpress.org)
WordPress version required:3.2
WordPress version tested:3.3.2
Plugin version:0.1
Added to WordPress repository:20-10-2011
Last updated:03-05-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://core.trac.wordpress.org/ticket/18952
Total downloads:2 605
Active installs:10+
plugin download
Click to start download

In jQuery 1.5+ (bundled with WordPress 3.2+), AJAX requests on sites with IDN domains don't work in IE or Opera.

On Edit Post screen, adding a new category results in JS error:

Message: 'parsed.responses' - is null or not an object

On Categories screen, adding a new category silently fails.

According to jaubourg's comment in jQuery bug tracker, the request is considered cross-domain and, since IE doesn't support cross-domain requests, AJAX won't find a suitable transport and bail out.

This plugin implements a workaround suggested there by making AJAX requests relative.

WordPress Trac ticket: #18952


ChangeLog