Skip to content

Commit 26e1543

Browse files
committed
Remove references to this self-defined get_user_meta function
1 parent b79f938 commit 26e1543

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

alerts/class-alert-type-menu-alert.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ public function menu_alert( $wp_admin_bar ) {
141141
/**
142142
* Get a list of all current alert messages for current user.
143143
*
144-
* @todo update this for VIP. (get_user_meta)
145-
*
146144
* @return array List of alert messages
147145
*/
148146
public function get_messages() {

classes/class-list-table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function get_hidden_columns() {
151151
}
152152

153153
// Directly checking the user meta; to check whether user has changed screen option or not.
154-
$hidden = $this->plugin->admin->get_user_meta( $user->ID, 'manage' . $this->screen->id . 'columnshidden', true );
154+
$hidden = get_user_meta( $user->ID, 'manage' . $this->screen->id . 'columnshidden', true );
155155

156156
// If user meta is not found; add the default hidden column 'id'.
157157
if ( ! $hidden ) {
@@ -1133,7 +1133,7 @@ public function screen_controls( $status, $args ) {
11331133
unset( $args );
11341134

11351135
$user_id = get_current_user_id();
1136-
$option = $this->plugin->admin->get_user_meta( $user_id, $this->plugin->admin->live_update->user_meta_key, true );
1136+
$option = get_user_meta( $user_id, $this->plugin->admin->live_update->user_meta_key, true );
11371137
$heartbeat = wp_script_is( 'heartbeat', 'done' ) ? 'true' : 'false';
11381138

11391139
if ( 'on' === $option && 'false' === $heartbeat ) {

classes/class-live-update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function heartbeat_received( $response, $data ) {
183183
return $response;
184184
}
185185

186-
$enable_stream_update = ( 'off' !== $this->plugin->admin->get_user_meta( get_current_user_id(), $this->user_meta_key ) );
186+
$enable_stream_update = ( 'off' !== get_user_meta( get_current_user_id(), $this->user_meta_key ) );
187187

188188
// Register list table.
189189
$this->list_table = new List_Table(

0 commit comments

Comments
 (0)