Code Duplication    Length = 4-4 lines in 2 locations

core/Container/Term_Meta_Container.php 2 locations

@@ 53-56 (lines=4) @@
50
51
		add_action( 'admin_init', array( $this, '_attach' ) );
52
53
		foreach ( $this->settings['taxonomy'] as $taxonomy ) {
54
			add_action( 'edited_' . $taxonomy, array( $this, '_save' ), 10, 2 );
55
			add_action( 'created_' . $taxonomy, array( $this, '_save' ), 10, 2 );
56
		}
57
	}
58
59
	/**
@@ 124-127 (lines=4) @@
121
122
		remove_action( 'admin_init', array( $this, '_attach' ) );
123
124
		foreach ( $this->settings['taxonomy'] as $taxonomy ) {
125
			remove_action( 'edited_' . $taxonomy, array( $this, '_save' ), 10, 2 );
126
			remove_action( 'created_' . $taxonomy, array( $this, '_save' ), 10, 2 );
127
		}
128
129
		// unregister field names
130
		foreach ( $this->fields as $field ) {