Fix is_webhook_settings_page

This commit is contained in:
Mike Jolley 2017-06-16 13:58:28 +01:00
parent 1e7b83b813
commit 42ebde73cd
1 changed files with 2 additions and 4 deletions

View File

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