envato / envato-theme-check

The WordPress Theme Check plugin for Envato
GNU General Public License v2.0
208 stars 57 forks source link

It can be useful if a verification method is integrated to check only unsafe and/or unreliable global variable #43

Closed potenzatk closed 5 years ago

potenzatk commented 5 years ago

Hello,

Please provide detail information about how we can remove this error with theme check and WPCS

WARNING: Found $_SERVER in the file base-functions.php. PHP Global Variable found. Ensure the context is safe and reliable. Line 693: $protocol = ( ! empty( $_SERVER['HTTPS'] ) && 'off' !== $_SERVER['HTTPS'] || isset( $_SERVER['SERV

https://i.imgur.com/lmEKnSm.png

Thanks

scottparry commented 5 years ago

WARNINGS will be checked by the reviewer and they will provide feedback if needed.