Skip to content

Commit

Permalink
Restoring the original isset( $note_row->is_read ) condition. I bel…
Browse files Browse the repository at this point in the history
…ieve it's there for notes without this property.
  • Loading branch information
andfinally committed Mar 11, 2024
1 parent e97383b commit 8557af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/woocommerce/src/Admin/Notes/DataStore.php
Expand Up @@ -112,7 +112,7 @@ public function read( &$note ) {
$note->set_date_reminder( $note_row->date_reminder );
$note->set_is_snoozable( (bool) $note_row->is_snoozable );
$note->set_is_deleted( (bool) $note_row->is_deleted );
$note->set_is_read( (bool) $note_row->is_read );
isset( $note_row->is_read ) && $note->set_is_read( (bool) $note_row->is_read );
$note->set_layout( $note_row->layout );
$note->set_image( $note_row->image );
$this->read_actions( $note );
Expand Down

0 comments on commit 8557af9

Please sign in to comment.