| @@ -150,14 +150,14 @@ | ||
| 150 | 150 | return array(); |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | // Directly checking the user meta; to check whether user has changed screen option or not. |
| 154 | - $hidden = get_user_meta( $user->ID, 'manage' . $this->screen->id . 'columnshidden', true ); | |
| 154 | + $hidden = $this->plugin->admin->get_user_meta( $user->ID, 'manage' . $this->screen->id . 'columnshidden', true ); | |
| 155 | 155 | |
| 156 | 156 | // If user meta is not found; add the default hidden column 'id'. |
| 157 | 157 | if ( ! $hidden ) { |
| 158 | 158 | $hidden = array( 'id' ); |
| 159 | - update_user_meta( $user->ID, 'manage' . $this->screen->id . 'columnshidden', $hidden ); | |
| 159 | + $this->plugin->admin->update_user_meta( $user->ID, 'manage' . $this->screen->id . 'columnshidden', $hidden ); | |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | return $hidden; |
| 163 | 163 | } |
| @@ -1138,9 +1138,9 @@ | ||
| 1138 | 1138 | |
| 1139 | 1139 | if ( 'on' === $option && 'false' === $heartbeat ) { |
| 1140 | 1140 | $option = 'off'; |
| 1141 | 1141 | |
| 1142 | - update_user_meta( $user_id, $this->plugin->admin->live_update->user_meta_key, 'off' ); | |
| 1142 | + $this->plugin->admin->update_user_meta( $user_id, $this->plugin->admin->live_update->user_meta_key, 'off' ); | |
| 1143 | 1143 | } |
| 1144 | 1144 | |
| 1145 | 1145 | $nonce = wp_create_nonce( $this->plugin->admin->live_update->user_meta_key . '_nonce' ); |
| 1146 | 1146 | |