-
Notifications
You must be signed in to change notification settings - Fork 110
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
Remove constant from the deprecated.php in optimization-detective plugin #1920
Comments
As part of this issue, let's also remove: performance/plugins/optimization-detective/class-od-tag-visitor-context.php Lines 123 to 136 in da320f3
|
Also these class aliases: performance/plugins/optimization-detective/load.php Lines 110 to 111 in da320f3
|
Hi @westonruter, Should we work on this issue? as we have merged, the PR related to the REST API class for URL metrics? Or should we wait for the releases for the plugins in |
@hbhalodia it can be worked on now. I've created the release branch for the release today, so if this gets merged it won't go out into the next release. We probably will need to update the |
In other words, we can just bump the performance/plugins/image-prioritizer/helper.php Lines 23 to 40 in 35b9ae1
We can also get rid of
|
Hi @westonruter, I have raised the PR with the required changes - #1943, Can you please review the same. Thank You, |
Hi @westonruter, I spent some time resolving the failed unit test, but not able to identify the root caues from the PR. I am guessing it would be related to the part we removed from alias and switch case removal. Also just to confirm, we need to remove the entire case in switch or just the below part and keep the case as it is.
Thank You, |
We'll remove the entire case, yes. There should no longer be a |
Bug Description
Part of - #1859 and in PR - #1865, We have removed the use of the constants from the file, instead we have added those constant in a class.
For backward compatibility, we have kept those constant in deprecated.php file, since these constants are being used in
Image Priortizer
plugin as well.The constants are
OD_REST_API_NAMESPACE
andOD_URL_METRICS_ROUTE
,in newer versions after 2 or 3 releases,(see #1943 (comment)) we need to update the plugin to use the class constants instead of deprecated once and remove it from the file. SeeWe need to pick this once the PR - #1865 is merged and
Optimization detective
plugin is released with Image Priortizer as well.Steps to reproduce
Screenshots
Cc: @westonruter @felixarntz
The text was updated successfully, but these errors were encountered: