Releases already had platform links; shows had none, so the Podcasts page could not point at Spotify or Apple. chrnx_show terms take a Spotify, Apple Podcasts and RSS URL now, rendered above the latest episode and only when a URL exists. The platform helper takes its definitions as an argument rather than always reading the release set: a podcast lives on Apple Podcasts, not Apple Music, and labelling it wrong would send people to the wrong service. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
12 lines
518 B
PHP
12 lines
518 B
PHP
<?php
|
|
define( 'CHRNX_VERSION', '0.2.0' );
|
|
|
|
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
|
|
foreach ( array( 'setup', 'assets', 'taxonomies', 'editor', 'podcast-meta', 'project-meta', 'release-meta', 'show-meta', 'track-meta', 'settings', 'queries', 'media', 'blocks', 'theme-preference' ) as $module ) {
|
|
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
|
|
$path = get_theme_file_path( "inc/{$module}.php" );
|
|
if ( file_exists( $path ) ) {
|
|
require_once $path;
|
|
}
|
|
}
|