[wp-trac] [WordPress Trac] #11109: Upgrade SWFobject JS to 2.2
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 29 16:39:36 UTC 2009
#11109: Upgrade SWFobject JS to 2.2
--------------------------+-------------------------------------------------
Reporter: niallkennedy | Owner: azaozz
Type: enhancement | Status: new
Priority: normal | Milestone: 2.9
Component: JavaScript | Version:
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
Changes (by dimadin):
* cc: dimadin (added)
* milestone: Unassigned => 2.9
Comment:
In plugins repository I [http://www.google.com/search?q=site%3Asvn.wp-
plugins.org+wp_enqueue_script%28%27swfobject%27%29 saw] that most plugins
that use SWFObject use their own file and not enqueued one which is
included with WordPress. One of rare plugins that enqueue it properly is
Viper's Video Quicktags and because of it's hack I saw that its necessary
for Viper's Video Quicktags and other plugins to use version 2.2.
Is there reason why this still hasn't been updated? If there isn't reason,
could update be done for WP 2.9 so that we can encourage plugin authors to
start using wp_enqueue_script?
I don't see anywhere in core WP that this file is used except in one very
rare case described below. It is only used SWFObject script included with
SWFUpload on upload screens: swfupload-all is enqueued that contains
SWFObject script in itself; but if SCRIPT_DEBUG is turned on, then
enqueuing of swfupload-all enqueue separate files (which are by default
all in swfupload-all.js) and one of them is swfobject.js (you can see this
in [http://core.trac.wordpress.org/browser/trunk/wp-includes/script-
loader.php script-loader.php]).
So in most cases swfobject.js is only used by plugins and they need latest
version, so update is recommended.
(btw, SWFUpload too has newer version)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11109#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list