PHP Notice with Debug Enabled
-
Hello Simon,
Custom Post Templates is an incredibly helpful plugin. However, I’ve started to notice PHP Notices for new/unsaved posts when using the plugin with debug enabled. The notice is:
NOTICE: wp-content/plugins/custom-post-template/custom-post-templates.php:112 - Undefined index: custom_post_template_present
This was easy to fix by checking to see if the
custom_post_template_present
POST variable is set before continuing. I just added the following right above line 112:if( ! isset( $_POST[ 'custom_post_template_present' ] ) ) return;
Any chance you could incorporate this into a future update to the plugin?
Thank you!
- The topic ‘PHP Notice with Debug Enabled’ is closed to new replies.