diff --git a/src/wp-content/themes/twentyfourteen/inc/widgets.php b/src/wp-content/themes/twentyfourteen/inc/widgets.php index 8bb90087f7..64b718e340 100644 --- a/src/wp-content/themes/twentyfourteen/inc/widgets.php +++ b/src/wp-content/themes/twentyfourteen/inc/widgets.php @@ -75,22 +75,6 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { * @return void Echoes its output. */ public function widget( $args, $instance ) { - // If called directly, assign an unique index for caching. - if ( -1 == $this->number ) { - static $num = -1; - $this->_set( --$num ); - } - - $content = get_transient( $this->id ); - - if ( false !== $content ) { - echo $content; - return; - } - - ob_start(); - extract( $args, EXTR_SKIP ); - $format = $instance['format']; $number = empty( $instance['number'] ) ? 2 : absint( $instance['number'] ); $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? $this->format_strings[ $format ] : $instance['title'], $instance, $this->id_base ); @@ -115,7 +99,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { $tmp_content_width = $GLOBALS['content_width']; $GLOBALS['content_width'] = 306; - echo $before_widget; + echo $args['before_widget']; ?>