Make WordPress Core


Ignore:
Timestamp:
02/08/2012 04:12:11 PM (11 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/media.php

    r19712 r19871  
    10971097/* <![CDATA[ */
    10981098    jQuery(document).ready(function($){
    1099         $.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post_ID ); ?>");
     1099        $.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post_ID, 'relative' ); ?>");
    11001100    });
    11011101/* ]]> */
Note: See TracChangeset for help on using the changeset viewer.