-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Public API: Remove small APIs deprecated in WordPress 5.2 #30283
Conversation
Size Change: -246 B (0%) Total Size: 1.42 MB
ℹ️ View Unchanged
|
I think it's fine. I wonder if @annezazu has any thoughts on communication. A dev note seems like the most obvious step. Just checking usage (which might not work if the code is minified):
It'd be nice if this was built in to the plugin repo, some way to notify devs about removed APIs 😄 . |
In general, I agree. In this case, the question is whether -241 B is worth it. Anyway, it's a good way to start the discussion since in WordPress 5.3 the number of deprecations introduced is quite long. The safe bet would be keeping those deprecations in all the versions of WordPress that get security updates. |
This might not be worth it on its own, its the accumulation that is worth it and instead of dropping all depreacations at once, it's better to spread over time, the older ones first. |
I agree with this and changes in this PR seem reasonable to me. What is the current process for this? First create a make.core post(dev note) and then remove or remove and then create the dev note? |
@ntsekouras The dev note happens by the time the WP RC approaches (and APIs freeze), so it's more: do the change, add the dev note label and write the post when the time comes. |
Just chiming in to say that I agree with a dev note approach as it's a predictable pathway. To be safe though, next week I'll reach out to the impacted plugin authors to let them know the change is coming so they can proactively prepare. |
Just confirming that all impacted plugin authors have been contacted today and directed to this GitHub issue! |
b3004b9
to
61571e8
Compare
Any approvals here :) |
Thanks :) |
This PR raises the question of how long should it take to remove deprecated JS APIs. Unlike PHP these can't be supported forever because they have an impact on users, they keep useless Kbs around that combine impact performance.
In This PR I'm removing 5.2 deprecations which was released almost two years ago and since we had 5 major releases.
I think removing an old API should be done carefully by thinking of the impact of each API.
For the APIs removed in this PR particularly, I think the potential impact is negligible.