admin管理员组文章数量:1122832
I am fairly new to WP, so I apologize for this very basic question, but I am working on a site that has an older version of jQuery showing up.
Here is the jQuery reference I have placed in the header, which appears on line 20 of the source code:
<script src=".11.0/jquery.min.js"></script>
But on line 39 of the source code I see the following:
<script type='text/javascript' src='.4/jquery.min.js?ver=3.8.1'></script>
I have searched the files and I cannot see where this reference is coming from. I need to get rid of it and could therefore use some guidance on tracking it down. Thanks.
I am fairly new to WP, so I apologize for this very basic question, but I am working on a site that has an older version of jQuery showing up.
Here is the jQuery reference I have placed in the header, which appears on line 20 of the source code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
But on line 39 of the source code I see the following:
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js?ver=3.8.1'></script>
I have searched the files and I cannot see where this reference is coming from. I need to get rid of it and could therefore use some guidance on tracking it down. Thanks.
Share Improve this question asked Mar 14, 2014 at 14:15 forrestforrest 4833 gold badges7 silver badges16 bronze badges 2 |2 Answers
Reset to default 2 Is line 39 located in the `<header></header>`?
/ \
Yes No
/ \
Remove it Check `functions.php`
look for `enqueue_script()`.
Found it?
/ \
Yes No
/ \
Remove it Disable All Plugins.
Is it gone?
/ \
Yes No
/ \
Remove it Re-search all
Template Files.
Found it?
/ \
Yes No
/ \
Remove it You're SoL
If you have access to the command line, you could try "cd"ing to the root of your website and do a recursive search, like this:
cd /var/www
rgrep -i "ajax\.google" * > /tmp/ajax-search.results
then
more /tmp/ajax-search.results
that found a few files that had "ajax.google" references in them. Its a good place to start
本文标签: javascriptI have an old version of jQuery showing up How do I figure out where it is coming from
版权声明:本文标题:javascript - I have an old version of jQuery showing up. How do I figure out where it is coming from? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736297492a1930024.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
header.php
for the file, Found it? 'No' -> checkfunctions.php
and look for anenquque_script
function. Found it? 'No' -> try disabling all your plugins. These are the 3 things I would check. – Howdy_McGee ♦ Commented Mar 14, 2014 at 14:18