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-admin/includes/template.php

    r19853 r19871  
    13951395        'time':'<?php echo time() ?>'
    13961396    },
    1397     ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>',
     1397    ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
    13981398    pagenow = '<?php echo $current_screen->id; ?>',
    13991399    typenow = '<?php echo $current_screen->post_type; ?>',
Note: See TracChangeset for help on using the changeset viewer.