ChromatixAU / phpcs-config-chromatix

Chromatix custom config for phpcs. Based heavily on the WordPress Coding Standards but with some of our own too.
https://www.chromatix.com.au
MIT License
1 stars 0 forks source link

get_previous_post() and get_next_post() are not allowed #18

Closed ffxffxwu closed 6 years ago

ffxffxwu commented 6 years ago

| ERROR | [ ] get_next_post() is highly discouraged due to not being | | cached; please use wpcom_vip_get_adjacent_post() | | instead. | | (WordPress.VIP.RestrictedFunctions.get_adjacent_post_get_next_post)

| ERROR | [ ] get_previous_post() is highly discouraged due to not | | being cached; please use wpcom_vip_get_adjacent_post() | | instead. | | (WordPress.VIP.RestrictedFunctions.get_adjacent_post_get_previous_post)

tdmalone commented 6 years ago

Fixed in v0.0.14 of phpcs-config-chromatix.

@ffxffxwu You can run composer update chromatix/phpcs-config-chromatix to update your version.