Support » Fixing WordPress » Widget control won’t update but others do ($_POST empty?)

  • Resolved jeremyduffy


    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?

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Widget control won’t update but others do ($_POST empty?)’ is closed to new replies.