refactor: drop the featured-project picker in favour of the project list
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
12 files changed
+6
-362
No files matched your search
@@ -140,12 +140,9 @@ foreach ( $chrnx_seed_posts as $chrnx_seed_index => $chrnx_seed_post ) {
|
||||
wp_set_object_terms( $chrnx_seed_post_id, array(), 'chrnx_release', false );
|
||||
}
|
||||
|
||||
foreach ( array( 'chrnx_episode_number', 'chrnx_episode_duration', 'canonical_episode_url', 'chrnx_project_featured' ) as $chrnx_seed_meta_key ) {
|
||||
foreach ( array( 'chrnx_episode_number', 'chrnx_episode_duration', 'canonical_episode_url' ) as $chrnx_seed_meta_key ) {
|
||||
delete_post_meta( $chrnx_seed_post_id, $chrnx_seed_meta_key );
|
||||
}
|
||||
if ( ! empty( $chrnx_seed_post['projectFeatured'] ) ) {
|
||||
update_post_meta( $chrnx_seed_post_id, 'chrnx_project_featured', true );
|
||||
}
|
||||
delete_post_meta( $chrnx_seed_post_id, 'chrnx_track_number' );
|
||||
if ( isset( $chrnx_seed_post['trackNumber'] ) ) {
|
||||
update_post_meta( $chrnx_seed_post_id, 'chrnx_track_number', absint( $chrnx_seed_post['trackNumber'] ) );
|
||||
|
||||
Reference in new issue
Block a user