Seperate the {create|edit}-key isset check, as it won't work

This commit is contained in:
Shiva Poudel 2018-02-10 10:07:06 +05:45
parent 0f8f33b645
commit c35fb04455
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class WC_Admin_API_Keys {
public function screen_option() {
global $keys_table_list;
if ( ! isset( $_GET['create-key'], $_GET['edit-key'] ) && $this->is_api_keys_settings_page() ) {
if ( ! isset( $_GET['create-key'] ) && ! isset( $_GET['edit-key'] ) && $this->is_api_keys_settings_page() ) {
$keys_table_list = new WC_Admin_API_Keys_Table_List();
// Add screen option.