Ticket #12919: 12919.2.patch
File 12919.2.patch, 3.4 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-upgrader.php
1055 1055 function add_strings() { 1056 1056 $this->upgrader->strings['skin_update_failed_error'] = __('An error occured while updating %1$s: <strong>%2$s</strong>.'); 1057 1057 $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); 1058 $this->upgrader->strings['skin_update_successful'] = __('%1$s updated successfully. <a onclick="%2$s" href="#" >See Details</a>.');1058 $this->upgrader->strings['skin_update_successful'] = __('%1$s updated successfully. <a onclick="%2$s" href="#" class="hide-if-no-js"><span>Show Details</span><span class="hidden">Hide Details</span>.</a>'); 1059 1059 } 1060 1060 1061 1061 function feedback($string) { … … 1101 1101 function before($title = '') { 1102 1102 $this->in_loop = true; 1103 1103 printf( '<h4>' . $this->upgrader->strings['skin_before_update_header'] . '</h4>', $title, $this->upgrader->update_current, $this->upgrader->update_count); 1104 echo '<div class="update-messages " style="display:none" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>';1104 echo '<div class="update-messages hide-if-js" id="progress-' . esc_attr($this->upgrader->update_current) . '"><p>'; 1105 1105 $this->flush_output(); 1106 1106 } 1107 1107 … … 1116 1116 echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').show();</script>'; 1117 1117 } 1118 1118 if ( !empty($this->result) && !is_wp_error($this->result) ) { 1119 echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle(); return false;') . '</p></div>';1119 echo '<div class="updated"><p>' . sprintf($this->upgrader->strings['skin_update_successful'], $title, 'jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').toggle();jQuery(\'span\', this).toggle(); return false;') . '</p></div>'; 1120 1120 } 1121 1121 $this->reset(); 1122 1122 $this->flush_output(); -
wp-admin/includes/template.php
3464 3464 * 3465 3465 */ 3466 3466 function iframe_header( $title = '', $limit_styles = false ) { 3467 global $hook_suffix; 3467 3468 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3468 3469 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>> 3469 3470 <head> … … 3485 3486 do_action('admin_print_styles'); 3486 3487 do_action('admin_print_scripts'); 3487 3488 do_action('admin_head'); 3489 3490 $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); 3491 if ( get_user_setting('mfold') == 'f' ) 3492 $admin_body_class .= ' folded'; 3488 3493 ?> 3489 3494 </head> 3490 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?>> 3495 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin no-js<?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>"> 3496 <script type="text/javascript"> 3497 //<![CDATA[ 3498 (function(){ 3499 var c = document.body.className; 3500 c = c.replace(/no-js/, 'js'); 3501 document.body.className = c; 3502 })(); 3503 //]]> 3504 </script> 3491 3505 <?php 3492 3506 } 3493 3507