-
Notifications
You must be signed in to change notification settings - Fork 113
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
Functions is being misread as a default WP function on theme update #356
Comments
The problem here is that we check if |
Yes, a regex would be an improvement. I question whether this check should block upload at all. |
I found 11 themes (including oceanwp) that were blocked by this requirement since june 17. The requirement is in place because wp_title was supposed to be deprecated many years ago, and it was reverted because so many themes still used it incorrectly. |
Should the check be removed, or tweaked? if ( preg_match( '/\bwp_title\b/', $file_content ) ) { |
tweaked then kept as required :) |
Hello,
We have a little problem with the new update checker rules. One of our functions (oceanwp_title()) is being misread as a default WP function (wp_title(), which is not in use in the theme at all), and we're unable to push an update. oceanwp_title has been in the theme since the very first version. We could change the function name, but first, we wanted to check if there's a way to bypass this, otherwise, all our users using custom codes related to this function will experience issues. Not to mention other possible and future issues with all functions using oceanwp in the name. Grateful for any help and feedback we can get
theme-check/checks/class-title-check.php
Line 38 in bba5fef
Thank you
The text was updated successfully, but these errors were encountered: