Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 679-681 (lines=3) @@
676
			}
677
		}
678
679
		if ( $media_item->post_parent > 0 ) {
680
			$response['meta']->links->parent = (string) $this->links->get_post_link( $this->site->get_id(), $media_item->post_parent );
681
		}
682
683
		return (object) $response;
684
	}

class.json-api-endpoints.php 1 location

@@ 1463-1465 (lines=3) @@
1460
			}
1461
		}
1462
1463
		if ( $media_item->post_parent > 0 ) {
1464
			$response['meta']->links->parent = (string) $this->links->get_post_link( $this->api->get_blog_id_for_output(), $media_item->post_parent );
1465
		}
1466
1467
		return (object) $response;
1468
	}