Skip to content

Commit

Permalink
Reverting recent episodes css "fix"
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbossenger committed Feb 22, 2021
1 parent b131570 commit e01db7f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions php/classes/controllers/class-episode-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function init() {

public function load_recent_episodes_assets() {
wp_register_style( 'ssp-recent-episodes', $this->assets_url . 'css/recent-episodes.css', array(), $this->version );
wp_enqueue_style( 'ssp-recent-episodes' );
}

/**
Expand Down Expand Up @@ -300,10 +301,6 @@ public function render_episodes($settings) {
);

$episodes_template_data = apply_filters( 'episode_list_data', $episodes_template_data );

if ( wp_style_is( 'ssp-recent-episodes', 'registered' ) && ! wp_style_is( 'ssp-recent-episodes', 'enqueued' ) ) {
wp_enqueue_style( 'ssp-recent-episodes' );
}

return $this->renderer->render( $episodes_template_data, 'episodes/all-episodes-list' );
}
Expand Down

0 comments on commit e01db7f

Please sign in to comment.