-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consequent use of version number in deprecated methods #13479
Comments
My opinion: always use |
I agree. This means we have to prefix the non WPSEO occurrences. |
Is it possible and a good idea to have a rule for this in the coding standards? |
@andizer Indeed it is. Would you mind opening an issue for this in the YoastCS repo ? |
YoastCS issue: Yoast/yoastcs#152 |
Is it sufficient to only keep the issue in the YoastCS repo open and close this one? Or is this one for the actual changing and the other one for the CS rule? |
@Djennez The YoastCS issue is for adding a sniff to detect this automatically (a sniff like this will actually go into WPCS). This issue is to fix the non-compliance within WPSEO. and should stay open until the non-compliant instances in WPSEO have been fixed. |
What I thought 👍 Thanks! |
We use same ways of showing version numbers when call
deprecated_function
. In the most situations the WPSEO prefix (e.g.WPSEO 7.9
) way has been applied. In the other cases only the version number (e.g.11.0
) has been given as argument.We should agree to use one of both forms and stick to that agreement to prevent differences in the codebase.
The text was updated successfully, but these errors were encountered: