Code Duplication    Length = 9-9 lines in 2 locations

src/wp-includes/class-wp-post.php 2 locations

@@ 278-286 (lines=9) @@
275
			return get_post_meta( $this->ID, '_wp_page_template', true );
276
		}
277
278
		if ( 'post_category' == $key ) {
279
			if ( is_object_in_taxonomy( $this->post_type, 'category' ) )
280
				$terms = get_the_terms( $this, 'category' );
281
282
			if ( empty( $terms ) )
283
				return array();
284
285
			return wp_list_pluck( $terms, 'term_id' );
286
		}
287
288
		if ( 'tags_input' == $key ) {
289
			if ( is_object_in_taxonomy( $this->post_type, 'post_tag' ) )
@@ 288-296 (lines=9) @@
285
			return wp_list_pluck( $terms, 'term_id' );
286
		}
287
288
		if ( 'tags_input' == $key ) {
289
			if ( is_object_in_taxonomy( $this->post_type, 'post_tag' ) )
290
				$terms = get_the_terms( $this, 'post_tag' );
291
292
			if ( empty( $terms ) )
293
				return array();
294
295
			return wp_list_pluck( $terms, 'name' );
296
		}
297
298
		// Rest of the values need filtering.
299
		if ( 'ancestors' == $key )