diff --git a/lib/feeds/base.php b/lib/feeds/base.php index f3bdff275..5de9df47b 100644 --- a/lib/feeds/base.php +++ b/lib/feeds/base.php @@ -205,6 +205,12 @@ function override_feed_head($hook, $podcast, $feed, $format) add_action($hook, function () use ($podcast, $feed, $format) { echo PHP_EOL; + if ($podcast->copyright) { + $copyright = "\t".get_xml_text_node('copyright', $podcast->copyright); + echo apply_filters('podlove_feed_itunes_author', $copyright); + echo PHP_EOL; + } + $author = "\t".get_xml_text_node('itunes:author', $podcast->author_name); echo apply_filters('podlove_feed_itunes_author', $author); echo PHP_EOL; diff --git a/lib/model/podcast.php b/lib/model/podcast.php index 0173a3ae3..e44075b86 100644 --- a/lib/model/podcast.php +++ b/lib/model/podcast.php @@ -475,3 +475,4 @@ private function fetch() Podcast::property('plus_enable_proxy'); Podcast::property('funding_url'); Podcast::property('funding_label'); +Podcast::property('copyright'); diff --git a/lib/settings/podcast/tab/directory.php b/lib/settings/podcast/tab/directory.php index 859f4efda..fac2be2bf 100644 --- a/lib/settings/podcast/tab/directory.php +++ b/lib/settings/podcast/tab/directory.php @@ -29,6 +29,7 @@ public function process_form() 'complete', 'funding_url', 'funding_label', + 'copyright', ]; $settings = get_option('podlove_podcast'); @@ -122,6 +123,12 @@ public function register_page() 'description' => __('Label for funding/donation URL.', 'podlove-podcasting-plugin-for-wordpress'), 'html' => ['class' => 'regular-text'], ]); + + $wrapper->string('copyright', [ + 'label' => __('Copyright', 'podlove-podcasting-plugin-for-wordpress'), + 'description' => __('Copyright notice for content in the channel.', 'podlove-podcasting-plugin-for-wordpress'), + 'html' => ['class' => 'regular-text'], + ]); }); } } diff --git a/readme.txt b/readme.txt index b9a5c202e..d9d441a7e 100644 --- a/readme.txt +++ b/readme.txt @@ -106,6 +106,10 @@ This product includes GeoLite2 data created by MaxMind, available from http://ww == Changelog == += 2021-04-21 = + +* adds copyright field in "Podcast Settings - Directory", which is apparently required by the Apple Podcast Directory since yesterday. + = 2021-04-18 = * perf: remove frontend.js (inline logic to download button HTML)