Ticket #52845: template.php.patch
File template.php.patch, 1.2 KB (added by , 3 years ago) |
---|
-
src/wp-admin/includes/template.php
2025 2025 wp_enqueue_style( 'colors' ); 2026 2026 ?> 2027 2027 <script type="text/javascript"> 2028 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();}}};2028 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();}}}; 2029 2029 function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_remove();} 2030 2030 var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', 2031 2031 pagenow = '<?php echo esc_js( $current_screen->id ); ?>', … … 2115 2115 do_action( 'admin_print_footer_scripts' ); 2116 2116 ?> 2117 2117 </div> 2118 <script type="text/javascript">if( typeof wpOnload=="function")wpOnload();</script>2118 <script type="text/javascript">if( typeof wpOnload === "function" ) wpOnload();</script> 2119 2119 </body> 2120 2120 </html> 2121 2121 <?php