WPTT / WPThemeReview

PHP_CodeSniffer rules (sniffs) to enforce WordPress theme review coding conventions
MIT License
209 stars 37 forks source link

Check for deprecated function args #72

Closed khacoder closed 5 years ago

khacoder commented 8 years ago

[New sniff] Check for deprecated function arguments and issue Error if found.

Rule type:

Error

Rule:

Use WordPress functionality and features first, if available. Use *_url() template tags, rather than bloginfo() equivalents.

Ref: https://make.wordpress.org/themes/handbook/review/required/#core-functionality-and-features

ERROR | Check for usage of deprecated WP functions and provide alternative based on the parameter passed. For details, see Theme-Check plugin - /checks/more_deprecated.php We could probably extend an existing sniff of similar ilk for this or even combine this with the other deprecated checks.

Theme check file covering this rule:

https://github.com/Otto42/theme-check/blob/master/checks/more_deprecated.php

To do:

khacoder commented 8 years ago

I have this sniff ready to go and will upload after final testing.

grappler commented 6 years ago

It has not been fully fixed

dingo-d commented 5 years ago

This has a PR #217 🙂

dingo-d commented 5 years ago

Merged to develop and will be released with 0.2.0 version 🙂