Code Duplication    Length = 8-8 lines in 2 locations

core/Container/Post_Meta_Container.php 1 location

@@ 438-445 (lines=8) @@
435
	 *
436
	 * @param string $name
437
	 **/
438
	public function drop_unique_field_name( $name ) {
439
		foreach ( $this->settings['post_type'] as $post_type ) {
440
			$index = array_search( $name, self::$registered_field_names[ $post_type ] );
441
			if ( $index !== false ) {
442
				unset( self::$registered_field_names[ $post_type ][ $index ] );
443
			}
444
		}
445
	}
446
447
	/**
448
	 * Show the container only on pages whose parent is referenced by $parent_page_path.

core/Container/Term_Meta_Container.php 1 location

@@ 186-193 (lines=8) @@
183
	 *
184
	 * @param string $name
185
	 **/
186
	public function drop_unique_field_name( $name ) {
187
		foreach ( $this->settings['taxonomy'] as $taxonomy ) {
188
			$index = array_search( $name, self::$registered_field_names[ $taxonomy ] );
189
			if ( $index !== false ) {
190
				unset( self::$registered_field_names[ $taxonomy ][ $index ] );
191
			}
192
		}
193
	}
194
195
	/**
196
	 * Show the container only on terms from the specified taxonomies.