diff --git a/includes/customize-feed.php b/includes/customize-feed.php index 10592db8..570dd3a4 100644 --- a/includes/customize-feed.php +++ b/includes/customize-feed.php @@ -42,13 +42,6 @@ function bloginfo_rss_name( $output ) { if ( ! $term ) { return $output; } - $title = get_term_meta( $term->term_id, 'podcasting_title', true ); - if ( empty( $title ) ) { - $title = get_bloginfo( 'name' ); - $output = "$title » {$term->name}"; - } else { - $output = $title; - } return apply_filters( 'simple_podcasting_feed_title', $output, $term ); } diff --git a/readme.txt b/readme.txt index 54e7fc3e..42be296a 100644 --- a/readme.txt +++ b/readme.txt @@ -50,7 +50,7 @@ Repeat for each podcast you would like to create. === Submit your podcast feed to Pocket Casts * Validate your feeds at [https://www.castfeedvalidator.com/ Cast Feed Validator] before submitting them. -* Submit the podcast feed to https://pocketcasts.com/submit/ +* Submit the podcast feed to https://pocketcasts.com/submit/. === How do I get my podcast featured on Pocket Casts? diff --git a/tests/unit/test-customize-feed.php b/tests/unit/test-customize-feed.php index 6ed87866..33223014 100644 --- a/tests/unit/test-customize-feed.php +++ b/tests/unit/test-customize-feed.php @@ -187,10 +187,10 @@ public function test_rss_title_can_be_filtered() { \WP_Mock::userFunction( 'get_bloginfo' ) ->with( 'name' ) ->andReturn( 'Blogname' ); - + \WP_Mock::onFilter( 'simple_podcasting_feed_title' ) - ->with( 'Blogname » Original Podcast Name', $queried_object ) + ->with( 'Podcast Title', $queried_object ) ->reply( 'Filtered Podcast Title' ); $this->assertEquals( @@ -198,7 +198,7 @@ public function test_rss_title_can_be_filtered() { tenup_podcasting\bloginfo_rss_name( 'Podcast Title' ), 'tenup_podcasting\bloginfo_rss_name() should return the filtered value.' ); - + } public function data_provider_for_test_feed_item() {