Code Duplication    Length = 11-11 lines in 2 locations

core/Container/Comment_Meta_Container.php 1 location

@@ 79-89 (lines=11) @@
76
	/**
77
	 * Revert the result of attach()
78
	 **/
79
	public function detach() {
80
		parent::detach();
81
82
		remove_action( 'admin_init', array( $this, '_attach' ) );
83
		remove_action( 'edit_comment', array( $this, '_save' ) );
84
85
		// unregister field names
86
		foreach ( $this->fields as $field ) {
87
			$this->drop_unique_field_name( $field->get_name() );
88
		}
89
	}
90
91
	/**
92
	 * Output the container markup

core/Container/Post_Meta_Container.php 1 location

@@ 380-390 (lines=11) @@
377
	/**
378
	 * Revert the result of attach()
379
	 **/
380
	public function detach() {
381
		parent::detach();
382
383
		remove_action( 'admin_init', array( $this, '_attach' ) );
384
		remove_action( 'save_post', array( $this, '_save' ) );
385
386
		// unregister field names
387
		foreach ( $this->fields as $field ) {
388
			$this->drop_unique_field_name( $field->get_name() );
389
		}
390
	}
391
392
	/**
393
	 * Output the container markup