custom_field_template_delete_post and is_numeric validation
-
Hello can the author add a is_numeric validation to the post_id of the custom_field_template_delete_post function?
I have this bug since some month but w.o answer : http://ww.wp.xz.cn/support/topic/custom-field-template-woocommerce-aution-trigger-warning?replies=1.
I could get around that with an is_numeric validation
function custom_field_template_delete_post($post_id) { global $wpdb; $options = $this->get_custom_field_template_data(); if (is_numeric($post_id)) $id = !empty($options['posts'][$post_id]) ? $options['posts'][$post_id] : '';
The topic ‘custom_field_template_delete_post and is_numeric validation’ is closed to new replies.