Describe the bug
Creating a podcast show in the onboarding first step gives an "Invalid taxonomy" error.
PHP Warning: Use of undefined constant TAXONOMY_NAME - assumed 'TAXONOMY_NAME' (this will throw an Error in a future version of PHP) in /Users/******/public/wp-content/plugins/simple-podcasting/includes/create-podcast.php on line 128
It seems this issue is related to recent PR #238 in which we renamed Constant TAXONOMY_NAME to PODCASTING_TAXONOMY_NAME and need to update the constant to PODCASTING_TAXONOMY_NAME here.
|
$result = wp_insert_term( |
|
$this->podcast_name, |
|
TAXONOMY_NAME |
|
); |
Steps to Reproduce
- Activate the plugin for the first time on site or update the
simple_podcasting_onboarding option to no, if it is already in use on site.
- Feel a podcast show details on onboarding and click on create.
- Notice that create podcast failed and the "Invalid taxonomy" error is shown.
Screenshots, screen recording, code snippet
Environment information
No response
WordPress information
No response
Code of Conduct
Describe the bug
Creating a podcast show in the onboarding first step gives an "Invalid taxonomy" error.
It seems this issue is related to recent PR #238 in which we renamed Constant TAXONOMY_NAME to PODCASTING_TAXONOMY_NAME and need to update the constant to PODCASTING_TAXONOMY_NAME here.
simple-podcasting/includes/create-podcast.php
Lines 126 to 129 in f677004
Steps to Reproduce
simple_podcasting_onboardingoption tono, if it is already in use on site.Screenshots, screen recording, code snippet
Environment information
No response
WordPress information
No response
Code of Conduct