-
-
Notifications
You must be signed in to change notification settings - Fork 463
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
Conflicting Update available from WordPress Plugin Directory #581
Comments
You will need to use the branch switcher to reinstall the branch after setting extended naming. The renaming only occurs on updates, installs, and branch switching. |
Can you give me read access or a token to access your plugin so I can test? If not I'll see what I can do on my own. |
@dylanjameswagner It's been a while since I've tested this and I've found several issues. I'm working on a fix. It will be in the |
I think I've managed to fix the extended naming updating. Can you switch to the You might have to both refresh cache and select 'Check Again' from the update-core.php page. |
@dylanjameswagner I have a question. While fixing this I realize I don't really have to rename the slug. Do you think it would be better to simply have a constant that allows for overriding dot org? Functionally it would be the same. I'm thinking yes, as the developer named their repo intentionally. |
ab7c4b1 should fix this issue. Be aware that extended naming no longer happens but overriding dot org updates does. There is a new constant Let me know how this works for you. |
Hello, thanks for the quick response. I have just taken a look at the latest update and it seems to solve the issue and no longer prompts me to update from the wordpress.org even if I remove the On another note, when installing a different plugin with a conflicting name without the |
That's not the intended behavior. It may be that the conflicting plugin has been removed permanently or temporarily.
What happens is GHU compares all GHU compatible plugins against the update transient. If the update transient is coming from dot org then that value is unset if the constant is true. |
Thank you for the prompt fix. |
I think I fixed for theme collisions too. 🤓 |
Bug: This Plugin is updated by Github Updater, although it still exists on the official Wordpress Plugin Repo. https://de.wordpress.org/plugins/html-editor-syntax-highlighter/ |
@Pokerkoffer if I understand correctly this is the expected behavior. If Can you provide the URL for the repo that you want the updates to come from? |
Oh yeah, im sorry i misread that. I added the switch because it kept updating from github. |
So here’s the issue. The ‘slug’ that both dot org and GHU use must be the same for this to function. The GitHub repo slug is Given the above, if you installed the plugin from dot org it will be stored in a The only solution is to change the repository name on GitHub to |
I am unable to change the repo name because i am not the author or owner. Can you maybe add an option to exclude specific Plugins from updating through github updater? That would be awesome. Thanks |
It's really much simpler to contact the owner and let them know of the issue. Have them contact me and reference this issue. If you never update using GitHub Updater it will always update correctly from dot org. Essentially what has happened is that you have 2 distinct plugins, one looking to dot org to correctly update and both looking to GitHub. If you want to use a branch other than I’m happy to work with the developer to solve this, but the solution is to change the repository name not add a new feature. |
For other Googlers, @afragen is it accurate that Ref: https://git-updater.com/knowledge-base/wordpress-org-directory/ |
Correct. All constants for settings have been removed. BTW they have been removed for quite a while now. The above referenced KB page has the best information. If there's something unclear please let me know. |
I receive a plugin 'new versions available' from the WordPress Updates screen for a similarly named plugin from the public WordPress Plugin Directory after all qualified GitHub updates have been applied. Even with the
define( 'GITHUB_UPDATER_EXTENDED_NAMING', true );
set in . mywp-config.php
.Example:
I installed a test plugin named 'wordpress-plugin' via the GitHub Updater interface from a private repo. Installed it has the directory naming of
<git>-<owner>-<repo>
. The plugin has the 'GitHub Plugin URI' as required and it detects version increments as expected but apparently, there is a plugin on the Plugin Directory that matches the name 'wordpress-plugin' with a version number greater than my test plugin version and after applying any GitHub Updater updates I receive notice of pending updates from the Plugin Directory version.I thought the extended naming was supposed to help avoid this naming collision. Or is there something I am missing?
The text was updated successfully, but these errors were encountered: