Code Duplication    Length = 4-4 lines in 2 locations

core/Container/Term_Meta_Container.php 2 locations

@@ 44-47 (lines=4) @@
41
42
		add_action( 'admin_init', array( $this, '_attach' ) );
43
44
		foreach ( $this->settings['taxonomy'] as $taxonomy ) {
45
			add_action( 'edited_' . $taxonomy, array( $this, '_save' ), 10, 2 );
46
			add_action( 'created_' . $taxonomy, array( $this, '_save' ), 10, 2 );
47
		}
48
	}
49
50
	/**
@@ 115-118 (lines=4) @@
112
113
		remove_action( 'admin_init', array( $this, '_attach' ) );
114
115
		foreach ( $this->settings['taxonomy'] as $taxonomy ) {
116
			remove_action( 'edited_' . $taxonomy, array( $this, '_save' ), 10 );
117
			remove_action( 'created_' . $taxonomy, array( $this, '_save' ), 10 );
118
		}
119
120
		// unregister field names
121
		foreach ( $this->fields as $field ) {