WordPress.org

Make WordPress Core

Changeset 48083


Ignore:
Timestamp:
06/18/2020 08:06:42 PM (7 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison for JS fragment in wp-admin/admin-header.php.

Props subrataemfluence.
Fixes #45810.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-header.php

    r47808 r48083  
    8282?>
    8383<script type="text/javascript">
    84 addLoadEvent = 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();}}};
     84addLoadEvent = 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();}}};
    8585var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
    8686    pagenow = '<?php echo $current_screen->id; ?>',
Note: See TracChangeset for help on using the changeset viewer.