Code Duplication    Length = 3-3 lines in 2 locations

class.json-api-endpoints.php 1 location

@@ 1267-1269 (lines=3) @@
1264
			}
1265
		}
1266
1267
		if ( $media_item->post_parent > 0 ) {
1268
			$response['meta']->links->parent = (string) $this->links->get_post_link( $this->api->get_blog_id_for_output(), $media_item->post_parent );
1269
		}
1270
1271
		return (object) $response;
1272
	}

sal/class.json-api-post-base.php 1 location

@@ 644-646 (lines=3) @@
641
			}
642
		}
643
644
		if ( $media_item->post_parent > 0 ) {
645
			$response['meta']->links->parent = (string) $this->links->get_post_link( $this->site->blog_id, $media_item->post_parent );
646
		}
647
648
		return (object) $response;
649
	}