WordPress.org

Make WordPress Core

Ticket #39452: admin-header.php.patch

File admin-header.php.patch, 756 bytes (added by pbearne, 4 years ago)
  • src/wp-admin/admin-header.php

     
    7777<script type="text/javascript">
    7878addLoadEvent = 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();}}};
    7979var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
     80    resturl = '<?php echo rest_url( '/' ); ?>',
    8081        pagenow = '<?php echo $current_screen->id; ?>',
    8182        typenow = '<?php echo $current_screen->post_type; ?>',
    8283        adminpage = '<?php echo $admin_body_class; ?>',