Merge branch 'pr/11109'

This commit is contained in:
Mike Jolley 2016-06-14 11:10:21 +01:00
commit 815e9774a3
1 changed files with 3 additions and 4 deletions

View File

@ -26,16 +26,15 @@ class WC_Admin_API_Keys {
/**
* Check if is API Keys settings page.
*
* @return bool
*/
private function is_api_keys_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'] )
&& 'keys' == isset( $_GET['section'] );
&& 'keys' === $_GET['section'];
}
/**