WordPress.org

Make WordPress Core

Ticket #24907: 24907.diff

File 24907.diff, 780 bytes (added by jeremyfelt, 8 years ago)
  • wp-admin/admin-header.php

     
    5050?>
    5151<script type="text/javascript">
    5252addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
    53 var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
     53var ajaxurl = '<?php echo esc_url( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
    5454        pagenow = '<?php echo $current_screen->id; ?>',
    5555        typenow = '<?php echo $current_screen->post_type; ?>',
    5656        adminpage = '<?php echo $admin_body_class; ?>',