Code Duplication    Length = 4-4 lines in 2 locations

core/Container/Term_Meta_Container.php 2 locations

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