Remove unneeded set_id in note deletion handler
This commit is contained in:
parent
a46d83aea3
commit
6a25fb2249
|
@ -80,7 +80,6 @@ class WC_Admin_Notes {
|
|||
$note_ids = $data_store->get_notes_with_name( $name );
|
||||
foreach ( (array) $note_ids as $note_id ) {
|
||||
$note = new WC_Admin_Note( $note_id );
|
||||
$note->set_id( $note_id );
|
||||
$note->delete();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue