Skip to content

Fix podcast title #295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions includes/customize-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test-customize-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,18 @@ 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(
'Filtered Podcast Title',
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() {
Expand Down
Loading