Skip to content

Commit 795bdca

Browse files
Remove unnecessary method definition
1 parent cea0ffb commit 795bdca

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

php/context/class-fieldmanager-context-storable.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function save( $data = null ) {
5555
}
5656
if ( ! empty( $this->taxonomies_to_save ) ) {
5757
foreach( $this->taxonomies_to_save as $taxonomy => $term_ids ) {
58-
$this->update_term_relationships( $this->fm->data_id, $term_ids, $taxonomy );
58+
wp_set_object_terms( $this->fm->data_id, $term_ids, $taxonomy );
5959
}
6060
$this->taxonomies_to_save = array();
6161
}
@@ -218,11 +218,4 @@ abstract protected function update_data( $data_id, $data_key, $data_value, $data
218218
*/
219219
abstract protected function delete_data( $data_id, $data_key, $data_value = '' );
220220

221-
/**
222-
* Method to update the term relations for the context
223-
*/
224-
protected function update_term_relationships( $data_id, $term_ids, $taxonomy ) {
225-
wp_set_object_terms( $data_id, $term_ids, $taxonomy );
226-
}
227-
228221
}

0 commit comments

Comments
 (0)