There is a very simple fix for the swfobject duplicity which all solves the query parameter issue and also improves caching and YSlow/PageSpeed score:
The end result will be a single javascript with no url query parameter and no SSL mismatches.
in jw-player-plugin-for-wordpress the file jwplayermodule.php
replace line
wp_enqueue_script("google-swfobject", "https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js");
with:
wp_deregister_script( 'swfobject' );
wp_register_script( 'swfobject', 'http' . (is_ssl() ? 's' : '') . '://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js',NULL,NULL);
wp_enqueue_script( 'swfobject' );
*the second null parameter remove the url query parameter and improves caching and score
then ,in kimili-flash-embed the file kml_flashembed.php
this block of code (lines 86 to 90):
if ( get_option('kml_flashembed_swfobject_source') == '0' ) {
wp_register_script( 'swfobject', 'http' . (is_ssl() ? 's' : '') . '://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js', array(), '2.2' );
} else {
wp_register_script( 'swfobject', plugins_url('/kimili-flash-embed/js/swfobject.js'), array(), '2.2' );
}
becomes:
if ( get_option('kml_flashembed_swfobject_source') == '0' ) {
wp_deregister_script( 'swfobject' );
wp_register_script( 'swfobject', 'http' . (is_ssl() ? 's' : '') . '://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js', array(), NULL );
} else {
wp_register_script( 'swfobject', plugins_url('/kimili-flash-embed/js/swfobject.js'), array(), NULL );
}
cheers,
Sandro Bilbeisi