Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Add Post/RelatedUrls #36

Merged
merged 8 commits into from
Apr 24, 2017
Merged

Add Post/RelatedUrls #36

merged 8 commits into from
Apr 24, 2017

Conversation

tangrufus
Copy link
Member

No description provided.

return 0;
}

return url_to_postid($url);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url_to_postid() is prohibited, please use wpcom_vip_url_to_postid() instead.


$related = [];
foreach ($terms as $term) {
$link = get_term_link($term, $taxonomy);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_term_link() is prohibited, please use wpcom_vip_get_term_link() instead.

return null;
}

$postId = url_to_postid($cleanUrl);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url_to_postid() is prohibited, please use wpcom_vip_url_to_postid() instead.

@tangrufus tangrufus force-pushed the related-urls branch 2 times, most recently from eaae14f to 79a591c Compare April 24, 2017 16:30
return;
}

$postId = url_to_postid($cleanUrl);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url_to_postid() is prohibited, please use wpcom_vip_url_to_postid() instead.

@tangrufus tangrufus merged commit f5c6fd8 into master Apr 24, 2017
@tangrufus tangrufus deleted the related-urls branch April 29, 2017 11:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants