-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix issues reported for v1.8.1 release #318
Conversation
@@ -40,7 +40,11 @@ | |||
$episode_type = get_post_meta( $post_id, 'podcast_episode_type', true ); | |||
$episode_number = get_post_meta( $post_id, 'podcast_episode_number', true ); | |||
$season_number = get_post_meta( $post_id, 'podcast_season_number', true ); | |||
$term_image_id = get_term_meta( $podcast_show->term_id, 'podcasting_image', true ); | |||
if ( is_a( $podcast_show, 'WP_Term' ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this solves the undefined issue but doesn't actually solve the root problem, where the proper data isn't actually set on any existing blocks, even if the data was there before. I'm fine with adding this defensive check but just want to ensure we don't lose the thread on the larger issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to the requested changes but there was a PHPCS error that wasn't failing the GitHub Action. I've gone ahead and updated that check to use the latest version of our PHPCS library and have fixed all existing PHPCS errors
…any PHPCS failures are flagged
Description of the Change
This PR fixes some of the issues reported in #313
The following are the two issues that are fixed in this PR.
Partially Closes #313
How to test the Change
Here are the steps to test the first change
Here are the steps to test the second change
Changelog Entry
Credits
Props @sudar
Checklist: