From 04bdc64bc9d03096b9f916562c41bd0f54fb3062 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sat, 17 Apr 2010 12:27:13 +0000 Subject: [PATCH] Toggle between "Show Details" and "Hide Details" on GUU; Add no-js CSS class support to generic iframe header. Props ocean90. Fixes #12919 git-svn-id: https://develop.svn.wordpress.org/trunk@14123 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-upgrader.php | 10 +++++----- wp-admin/includes/template.php | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 92022a6f3d..b71d54ec05 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -1055,7 +1055,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { function add_strings() { $this->upgrader->strings['skin_update_failed_error'] = __('An error occured while updating %1$s: %2$s.'); $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); - $this->upgrader->strings['skin_update_successful'] = __('%1$s updated successfully. See Details.'); + $this->upgrader->strings['skin_update_successful'] = __('%1$s updated successfully. Show Details.'); } function feedback($string) { @@ -1087,7 +1087,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { if ( is_string($error) && isset( $this->upgrader->strings[$error] ) ) $this->error = $this->upgrader->strings[$error]; - if ( is_wp_error($error) && $error->get_error_code() ) { + if ( is_wp_error($error) ) { foreach ( $error->get_error_messages() as $emessage ) { if ( $error->get_error_data() ) $messages[] = $emessage . ' ' . $error->get_error_data(); @@ -1101,7 +1101,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { function before($title = '') { $this->in_loop = true; printf( '

' . $this->upgrader->strings['skin_before_update_header'] . '

', $title, $this->upgrader->update_current, $this->upgrader->update_count); - echo '