Revert "fix wpdb and undefined index after reset icon"

This reverts commit 1800374ea5e1d703d43f69f799d04fc9e93300af.