Make WordPress Core


Ignore:
Timestamp:
02/08/2012 04:12:11 PM (13 years ago)
Author:
nacin
Message:

Use relative paths for admin-ajax.php to avoid cross-domain issues with IDN domains in IE and Opera. props SergeyBiryukov, fixes #18952.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-editor.php

    r19833 r19871  
    585585
    586586        if ( !is_admin() )
    587             echo 'var ajaxurl = "' . admin_url('admin-ajax.php') . '";';
     587            echo 'var ajaxurl = "' . admin_url( 'admin-ajax.php', 'relative' ) . '";';
    588588?>
    589589    </script>
Note: See TracChangeset for help on using the changeset viewer.