[wp-trac] [WordPress Trac] #4988: Included jQuery library 1.1.4 may
be defective
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 16 11:29:31 GMT 2007
#4988: Included jQuery library 1.1.4 may be defective
----------------------------+-----------------------------------------------
Reporter: ionfish | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: Administration | Version: 2.3
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
There's something - not sure exactly what, given that I can't read a
Gzipped JavaScript library - wrong with the included version of jQuery,
1.1.4. A previously working script (on a plugin-generated admin page) that
requires jQuery's $ function (the alias for the jQuery object) no longer
works, and Firebug gives me this error:
$ is not a function
[Break on this error] $(document).ready(function() {
You can see my script here:
http://tarski.googlecode.com/svn/trunk/library/options.js
I have tried including several different versions of jQuery, downloaded
from the jQuery website. The 1.1.4 uncompressed and compressed versions
work fine (there are no errors and my script runs as intended), as do the
1.2 uncompressed and compressed version. The error only occurs when using
the jquery.js file included with WordPress.
I also thought my WordPress installation might not have downloaded that
file correctly, so I deleted it and updated again from the repository (I'm
running the svn trunk). That produced the same problems as before. My
conclusion is that the included jQuery file may be defective in some way.
I'd appreciate it if people could test this out and corroborate my
findings. I know there was a plan to switch to jQuery 1.2 and that ought
to fix the problem, but since it's not been done yet (and may not be until
the next version?) a fix for this - if it is indeed a WordPress problem -
would be most welcome.
--
Ticket URL: <http://trac.wordpress.org/ticket/4988>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list