-
-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
Because of the phpcs bug with PHPDoc type hints
src/Post/RelatedUrls.php
Outdated
return 0; | ||
} | ||
|
||
return url_to_postid($url); |
There was a problem hiding this comment.
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.
src/Post/RelatedUrls.php
Outdated
|
||
$related = []; | ||
foreach ($terms as $term) { | ||
$link = get_term_link($term, $taxonomy); |
There was a problem hiding this comment.
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.
src/Post/Finder.php
Outdated
return null; | ||
} | ||
|
||
$postId = url_to_postid($cleanUrl); |
There was a problem hiding this comment.
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.
eaae14f
to
79a591c
Compare
src/Post/Finder.php
Outdated
return; | ||
} | ||
|
||
$postId = url_to_postid($cleanUrl); |
There was a problem hiding this comment.
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.
No description provided.