[resolved] Widget control won't update but others do ($_POST empty?) (2 posts)

  1. jeremyduffy
    Posted 6 years ago #

    I'm trying to work with widget controls for my plugin, but for some reason I can't get them to update when changed. My other widgets update fine, but this one is driving me nuts. I tried doing a print_r on $_POST to see the values it has in it after I click "Save Changes" but it's showing EMPTY!!! Why is it empty in the first place and if it really is empty, how is my other widget updating?

  2. jeremyduffy
    Posted 6 years ago #

    I still don't know why post isn't showing and why even if I put an echo in the IF statements that handle the post they don't show, but somehow the post is still updated.

    I did find out what was wrong with my other widgets though. I was using filter code to strip out any unwanted characters that I didn't write correctly and therefore returned null every time.

    Once I fixed that, I was able to get the widget to work properly though testing it was a pain due to not being able to see Post values.

Topic Closed

This topic has been closed to new replies.

About this Topic