Skip to content
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

Open
andizer opened this issue Sep 12, 2019 · 8 comments
Open

Consequent use of version number in deprecated methods #13479

andizer opened this issue Sep 12, 2019 · 8 comments

Comments

@andizer
Copy link
Contributor

andizer commented Sep 12, 2019

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.

@jrfnl
Copy link
Contributor

jrfnl commented Sep 12, 2019

My opinion: always use WPSEO x.x.x as otherwise the deprecation message could be interpreted as coming from WP Core.
I realize that Core is nowhere near the higher version numbers of WPSEO, but being crystal clear about this is the best practice.

@andizer
Copy link
Contributor Author

andizer commented Sep 12, 2019

I agree. This means we have to prefix the non WPSEO occurrences.

@andizer
Copy link
Contributor Author

andizer commented Sep 12, 2019

Is it possible and a good idea to have a rule for this in the coding standards?

@jrfnl
Copy link
Contributor

jrfnl commented Sep 12, 2019

@andizer Indeed it is. Would you mind opening an issue for this in the YoastCS repo ?

@jrfnl
Copy link
Contributor

jrfnl commented Sep 28, 2019

YoastCS issue: Yoast/yoastcs#152

@Djennez
Copy link
Member

Djennez commented Oct 22, 2019

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?

@jrfnl
Copy link
Contributor

jrfnl commented Oct 22, 2019

@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.

@Djennez
Copy link
Member

Djennez commented Oct 22, 2019

What I thought 👍 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants