a8cteam51 / safety-net

Scrub options, deactivate denylisted plugins, and delete user data on development sites.
20 stars 1 forks source link

Fix issue caused by script type checking #100

Closed nate-allen closed 1 year ago

nate-allen commented 1 year ago

Fixes issue caused by comparing the value of get_option with !==. Instead, just check the value directly. If the value hasn't been set, get_option will return false. Otherwise, if any value has been set, then it'll evaluate as true

Also fixes a bunch of phpcs issues.