From 83754e1636f4266ac6104a6d748b368858bccc5d Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 5 Nov 2013 05:47:41 +0000 Subject: [PATCH] Remove dead code from the Plugin Upgrader class. Props jdgrimes. Fixes #25470 git-svn-id: https://develop.svn.wordpress.org/trunk@26015 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-upgrader-skins.php | 7 ------- src/wp-admin/includes/class-wp-upgrader.php | 1 - 2 files changed, 8 deletions(-) diff --git a/src/wp-admin/includes/class-wp-upgrader-skins.php b/src/wp-admin/includes/class-wp-upgrader-skins.php index b8c82c7a3b..31c5dbb4f5 100644 --- a/src/wp-admin/includes/class-wp-upgrader-skins.php +++ b/src/wp-admin/includes/class-wp-upgrader-skins.php @@ -136,13 +136,6 @@ class Plugin_Upgrader_Skin extends WP_Upgrader_Skin { if ( ! empty($update_actions) ) $this->feedback(implode(' | ', (array)$update_actions)); } - - function before() { - if ( $this->upgrader->show_before ) { - echo $this->upgrader->show_before; - $this->upgrader->show_before = ''; - } - } } /** diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index b9b80e5776..ea4ab196bb 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -408,7 +408,6 @@ class Plugin_Upgrader extends WP_Upgrader { var $result; var $bulk = false; - var $show_before = ''; function upgrade_strings() { $this->strings['up_to_date'] = __('The plugin is at the latest version.');