Changeset 8395
- Timestamp:
- 07/22/2008 04:03:36 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
wp-admin/admin-header.php (modified) (2 diffs)
-
wp-admin/js/wp-gears.js (modified) (3 diffs)
-
wp-includes/script-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r8249 r8395 75 75 76 76 <?php 77 $gears_compat = false; 78 79 if ( ($is_gecko || $is_winIE) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') === false ) { 80 $gears_compat = true; 77 if ( ! $is_opera ) { 81 78 ?> 82 79 <div id="gears-info-box" class="info-box" style="display:none;"> … … 111 108 <?php } ?> 112 109 113 <div id="user_info"><p><?php printf(__('Howdy, <a href="%1$s">%2$s</a>!'), 'profile.php', $user_identity) ?> | <a href="<?php echo site_url('wp-login.php?action=logout', 'login') ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a> | <?php _e('<a href="http://codex.wordpress.org/">Help</a>') ?> | <?php _e('<a href="http://wordpress.org/support/">Forums</a>'); if ( $gears_compat) { ?> | <span id="gears-menu"><a href="#" onclick="wpGears.message(1);return false;"><?php _e('Turbo') ?></a></span><?php } ?></p></div>110 <div id="user_info"><p><?php printf(__('Howdy, <a href="%1$s">%2$s</a>!'), 'profile.php', $user_identity) ?> | <a href="<?php echo site_url('wp-login.php?action=logout', 'login') ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a> | <?php _e('<a href="http://codex.wordpress.org/">Help</a>') ?> | <?php _e('<a href="http://wordpress.org/support/">Forums</a>'); if ( ! $is_opera ) { ?> | <span id="gears-menu"><a href="#" onclick="wpGears.message(1);return false;"><?php _e('Turbo') ?></a></span><?php } ?></p></div> 114 111 115 112 <?php -
trunk/wp-admin/js/wp-gears.js
r7951 r8395 26 26 27 27 storeName : function() { 28 var name = window.location.protocol + window.location.host;28 var name = window.location.protocol + window.location.host; 29 29 30 name = name.replace(/[\/\\:*"?<>|;,]+/g, '_'); // gears beta doesn't allow certain chars in the store name31 name = 'wp_' + name.substring(0, 60); // max length of name is 64 chars30 name = name.replace(/[\/\\:*"?<>|;,]+/g, '_'); // gears beta doesn't allow certain chars in the store name 31 name = 'wp_' + name.substring(0, 60); // max length of name is 64 chars 32 32 33 return name;34 },33 return name; 34 }, 35 35 36 message : function(show) {36 message : function(show) { 37 37 var t = this, msg1 = t.I('gears-msg1'), msg2 = t.I('gears-msg2'), msg3 = t.I('gears-msg3'), num = t.I('gears-upd-number'), wait = t.I('gears-wait'); 38 38 … … 62 62 return document.getElementById(id); 63 63 } 64 } 64 }; 65 65 66 function gearsInit() {66 (function() { 67 67 if ( 'undefined' != typeof google && google.gears ) return; 68 68 69 69 var gf = false; 70 if ( 'undefined' != typeof GearsFactory ) { // Firefox70 if ( 'undefined' != typeof GearsFactory ) { 71 71 gf = new GearsFactory(); 72 } else { // IE72 } else { 73 73 try { 74 74 gf = new ActiveXObject('Gears.Factory'); 75 } catch (e) {} 75 if ( factory.getBuildInfo().indexOf('ie_mobile') != -1 ) 76 gf.privateSetGlobalObject(this); 77 } catch (e) { 78 if ( ( 'undefined' != typeof navigator.mimeTypes ) && navigator.mimeTypes['application/x-googlegears'] ) { 79 gf = document.createElement("object"); 80 gf.style.display = "none"; 81 gf.width = 0; 82 gf.height = 0; 83 gf.type = "application/x-googlegears"; 84 document.documentElement.appendChild(gf); 85 } 86 } 76 87 } 77 88 … … 79 90 if ( 'undefined' == typeof google ) google = {}; 80 91 if ( ! google.gears ) google.gears = { factory : gf }; 81 } 82 83 gearsInit(); 92 })(); -
trunk/wp-includes/script-loader.php
r8358 r8395 195 195 )); 196 196 197 $scripts->add( 'wp-gears', '/wp-admin/js/wp-gears.js', false, '20080 511' );197 $scripts->add( 'wp-gears', '/wp-admin/js/wp-gears.js', false, '20080721' ); 198 198 $scripts->localize( 'wp-gears', 'wpGearsL10n', array( 199 199 'updateCompleted' => __('Update completed.'),
Note: See TracChangeset
for help on using the changeset viewer.