clean up comparison operators

This commit is contained in:
Mike Jolley 2017-06-16 13:53:57 +01:00
parent 8ed149915d
commit b4ea8bb94f
1 changed files with 3 additions and 3 deletions

View File

@ -31,11 +31,11 @@ class WC_Admin_Webhooks {
*/
private function is_webhook_settings_page() {
return isset( $_GET['page'] )
&& 'wc-settings' == $_GET['page']
&& 'wc-settings' === $_GET['page']
&& isset( $_GET['tab'] )
&& 'api' == $_GET['tab']
&& 'api' === $_GET['tab']
&& isset( $_GET['section'] )
&& 'webhooks' == isset( $_GET['section'] );
&& 'webhooks' === isset( $_GET['section'] );
}
/**