-
Notifications
You must be signed in to change notification settings - Fork 174
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
Text Domain vs Slug #125
Comments
I think I've done this, I still need to test thoroughly. I've added a custom-plugin-handler.php in the root directory, and modified the includes/Wpup/UpdateServer.php I have forked and uploaded here if someone else wants this https://github.com/stingray82/wp-update-server |
FWIW, I did look at the fork but couldn't figure out what it has to do with the text domain (the code doesn't mention "domain" or "language"), so I don't have any useful suggestions for this issue. I guess if it works 🤷 |
Maybe I did a poor job of explaining it, I have some plugins which when looking on the server look for Pluginname.zip and actually there folder and basic structure is actually pluginname-plugin.zip, this wasn't an issue when I was pushing and uploading them all manually but has been an issue when I added some automation, so new versions are pushed downloaded, zipped and uploaded to my custom repo it was causing me issues with updates
|
Hmm, if the slug => filename conversion is predictable, you might also be able to implement this by changing the |
I will look into that anything that makes it super easy to maintain I am up for so will definitely take a look at that |
Thanks for that its much more efficient and allows me to just add any new ones there, code is below in case its of use to anyone else, still testing it but it appears to be working;
} |
Is it possible to make the update checker check both slug and text domain? I've tried a htaccess redirect from one to the other but that works for a browser but not for the server is it possible to modify it to do both? so as an example
Example:
Bones-plugin.zip is checked and returned even if it is looking for bones.zip?
any suggestions would be appreciated
The text was updated successfully, but these errors were encountered: