-
-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the VIP.RestrictedFunctions sniff (#969)
* As of WordPress 4.8, get_term_by() is cached so we're going to stop recommending the use of wpcom_vip_get_term_by() instead of the core function. The function wpcom_vip_get_term_by() will be deprecated. * Also revised the sniff for get_category_by_slug() because it uses get_term_by() which is now recommended over wpcom_vip_get_term_by(). * Removing get_term_link() as restricted/flagged functions Using get_term_link(), get_tag_link(), and get_category_link() is okay as of WP 4.8, so we no longer need to flag these instances. Revised VIP sniff and unit testing to flag wpcom_vip_get_term_link() as deprecated instead.
- Loading branch information
Showing
3 changed files
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters