Minor fix needed
-
Hi, I noticed when updating posts the checkbox always defaults to checked, and I can only disable a post in the instant article feed by updating the post meta manually. I think the problematic line is
update_post_meta($id, ‘wp_fia_filter’, sanitize_text_field(‘1’));
which I’m pretty sure should be
update_post_meta($id, ‘wp_fia_filter’, $useCheckboxes);
Hope this helps someone!
The topic ‘Minor fix needed’ is closed to new replies.