Если GTMetrix ругается на
Remove query strings from static resources, что выглядит так
<script type="text/javascript" src="/jquery.min.js?ver=1.7.2"></script>
В functions.php
Remove query strings from static resources
Remove query strings from static resources, что выглядит так
<script type="text/javascript" src="/jquery.min.js?ver=1.7.2"></script>
В functions.php
Код:
/* УБИРАЕМ ВЕРСИИ СКРИПТОВ И СТИЛЕЙ - remove query strings from static resources */ function _remove_script_version( $src ){ $parts = explode( '?', $src ); return $parts[0]; } //Это для скриптов add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); //Это для стилей add_filter(...