From 3d96a0cb9a875515e15063b8a63731fcce2cc45d Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 3 Dec 2013 18:53:39 +0000 Subject: [PATCH] Twenty Fourteen: remove more widget cache code, props obenland. See #26210. git-svn-id: https://develop.svn.wordpress.org/trunk@26580 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfourteen/inc/widgets.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/wp-content/themes/twentyfourteen/inc/widgets.php b/src/wp-content/themes/twentyfourteen/inc/widgets.php index 64b718e340..b0e7585de4 100644 --- a/src/wp-content/themes/twentyfourteen/inc/widgets.php +++ b/src/wp-content/themes/twentyfourteen/inc/widgets.php @@ -58,10 +58,6 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { 'link' => __( 'Links', 'twentyfourteen' ), 'gallery' => __( 'Galleries', 'twentyfourteen' ), ); - - add_action( 'save_post', array( $this, 'flush_widget_cache' ) ); - add_action( 'deleted_post', array( $this, 'flush_widget_cache' ) ); - add_action( 'switch_theme', array( $this, 'flush_widget_cache' ) ); } /** @@ -221,22 +217,9 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { $instance['format'] = $new_instance['format']; } - $this->flush_widget_cache(); - return $instance; } - /** - * Delete the transient. - * - * @since Twenty Fourteen 1.0 - * - * @return void - */ - function flush_widget_cache() { - delete_transient( $this->id ); - } - /** * Display the form for this widget on the Widgets page of the Admin area. *