Default Google Gears ignoreQuery to true in manifest. see #13562

git-svn-id: http://svn.automattic.com/wordpress/trunk@15068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2010-05-30 08:45:50 +00:00
parent 239e7bf50f
commit 945b9b66be
3 changed files with 60 additions and 60 deletions

View File

@ -34,15 +34,15 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
$entries = '';
foreach ( $files as $file ) {
// Set ignoreQuery, defaulting to true
$ignore_query = ( isset($file[2]) && !$file[2] ) ? '' : ', "ignoreQuery" : true ';
// If version is not set, just output the file
if ( !isset($file[1]) )
$entries .= '{ "url" : "' . $file[0] . '" },' . "\n";
// If ver is set but ignoreQuery is not, output file with ver tacked on
elseif ( !isset($file[2]) )
$entries .= '{ "url" : "' . $file[0] . '?' . $file[1] . '" },' . "\n";
// Output url, src, and ignoreQuery
$entries .= '{ "url" : "' . $file[0] . '"' . $ignore_query . ' }' . "\n";
// Output url and src
else
$entries .= '{ "url" : "' . $file[0] . '", "src" : "' . $file[0] . '?' . $file[1] . '", "ignoreQuery" : true },' . "\n";
$entries .= '{ "url" : "' . $file[0] . '", "src" : "' . $file[0] . '?' . $file[1] . '"' . $ignore_query . ' },' . "\n";
}
echo trim( trim($entries), ',' );

View File

@ -11,7 +11,7 @@ $mce_ver = "ver=$tinymce_version";
/**
* Retrieve list of all cacheable WP files
*
* Array format: file, version (optional), bool (whether to use src and set ignoreQuery)
* Array format: file, version (optional), bool (whether to use src and set ignoreQuery, defaults to true)
*/
function &get_manifest() {
global $mce_ver;
@ -89,70 +89,70 @@ function &get_manifest() {
if ( @is_file('../wp-includes/js/tinymce/tiny_mce.js') ) :
$mce = array(
array('../wp-includes/js/tinymce/wp-tinymce.php', $mce_ver, true),
array('../wp-includes/js/tinymce/wp-tinymce.php', $mce_ver),
array('../wp-includes/js/tinymce/tiny_mce.js', $mce_ver, true),
array('../wp-includes/js/tinymce/langs/wp-langs-en.js', $mce_ver, true),
array('../wp-includes/js/tinymce/utils/mctabs.js', $mce_ver, true),
array('../wp-includes/js/tinymce/utils/validate.js', $mce_ver, true),
array('../wp-includes/js/tinymce/utils/form_utils.js', $mce_ver, true),
array('../wp-includes/js/tinymce/utils/editable_selects.js', $mce_ver, true),
array('../wp-includes/js/tinymce/tiny_mce_popup.js', $mce_ver, true),
array('../wp-includes/js/tinymce/tiny_mce.js', $mce_ver),
array('../wp-includes/js/tinymce/langs/wp-langs-en.js', $mce_ver),
array('../wp-includes/js/tinymce/utils/mctabs.js', $mce_ver),
array('../wp-includes/js/tinymce/utils/validate.js', $mce_ver),
array('../wp-includes/js/tinymce/utils/form_utils.js', $mce_ver),
array('../wp-includes/js/tinymce/utils/editable_selects.js', $mce_ver),
array('../wp-includes/js/tinymce/tiny_mce_popup.js', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/editor_template.js', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/source_editor.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/anchor.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/image.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/link.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/color_picker.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/charmap.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/js/color_picker.js', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/js/charmap.js', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/js/image.js', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/js/link.js', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/js/source_editor.js', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/js/anchor.js', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/dialog.css', $mce_ver, true),
array('../wp-includes/js/tinymce/themes/advanced/editor_template.js', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/source_editor.htm', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/anchor.htm', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/image.htm', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/link.htm', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/color_picker.htm', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/charmap.htm', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/js/color_picker.js', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/js/charmap.js', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/js/image.js', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/js/link.js', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/js/source_editor.js', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/js/anchor.js', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/dialog.css', $mce_ver),
array('../wp-includes/js/tinymce/plugins/fullscreen/editor_plugin.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/fullscreen/editor_plugin.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm', $mce_ver),
array('../wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/inlinepopups/template.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/inlinepopups/editor_plugin.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/inlinepopups/template.htm', $mce_ver),
array('../wp-includes/js/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css', $mce_ver),
array('../wp-includes/js/tinymce/plugins/media/editor_plugin.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/media/js/media.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/media/media.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/media/css/content.css', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/media/css/media.css', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/media/editor_plugin.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/media/js/media.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/media/media.htm', $mce_ver),
array('../wp-includes/js/tinymce/plugins/media/css/content.css', $mce_ver),
array('../wp-includes/js/tinymce/plugins/media/css/media.css', $mce_ver),
array('../wp-includes/js/tinymce/plugins/paste/editor_plugin.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/paste/js/pasteword.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/paste/js/pastetext.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/paste/pasteword.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/paste/blank.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/paste/pastetext.htm', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/paste/editor_plugin.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/paste/js/pasteword.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/paste/js/pastetext.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/paste/pasteword.htm', $mce_ver),
array('../wp-includes/js/tinymce/plugins/paste/blank.htm', $mce_ver),
array('../wp-includes/js/tinymce/plugins/paste/pastetext.htm', $mce_ver),
array('../wp-includes/js/tinymce/plugins/safari/editor_plugin.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/safari/editor_plugin.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/spellchecker/css/content.css', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/spellchecker/editor_plugin.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/spellchecker/css/content.css', $mce_ver),
array('../wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/tabfocus/editor_plugin.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/wordpress/css/content.css', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/wordpress/css/content.css', $mce_ver),
array('../wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html', $mce_ver),
array('../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js', $mce_ver),
array('../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css', $mce_ver),
array('../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css', $mce_ver),
array('../wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js', $mce_ver, true),
array('../wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js', $mce_ver),
array('../wp-includes/js/tinymce/themes/advanced/img/icons.gif'),
array('../wp-includes/js/tinymce/themes/advanced/img/colorpicker.jpg'),

View File

@ -29,7 +29,7 @@ $tinymce_version = '327-1235';
*
* @global string $manifest_version
*/
$manifest_version = '20100520';
$manifest_version = '20100530';
/**
* Holds the required PHP version