admin管理员组文章数量:1430684
I am having issues when I view my installed plugin page, it's telling me there is a new version available. If I click the view version or view details links, it shows a completely different plugin that someone else put on wordpress.
I've tried changing the plugin name and uri, and everything should be unique so not sure why this is happening.
Has anyone had this happen or know how to fix it?
Thanks in advance
I am having issues when I view my installed plugin page, it's telling me there is a new version available. If I click the view version or view details links, it shows a completely different plugin that someone else put on wordpress.
I've tried changing the plugin name and uri, and everything should be unique so not sure why this is happening.
Has anyone had this happen or know how to fix it?
Thanks in advance
Share Improve this question edited Apr 23, 2019 at 17:50 Darth Mikey D asked Apr 23, 2019 at 17:12 Darth Mikey DDarth Mikey D 931 silver badge9 bronze badges1 Answer
Reset to default 1WordPress retrieves the plug-in name from the comment block header in the main plug-in file (using the function get_plugin_data
defined in /wp-admin/includes/plugin.php
).
The thing is, it doesn't look for updates every time you visit the page - it schedules a cron job that fires every few hours to ease load on the servers running the repository. So after it finds an update for a plug-in, it will cache that find.
My recommendation:
- Deactivate and delete your plug-in from the site.
- Re-name the plug-in in the code / rename the plugin folder.
- Re-add your re-named plug-in to your site
This should circumvent any caching done by the update system.
Copied Resource Here
本文标签: My plugin wants to update another plugin
版权声明:本文标题:My plugin wants to update another plugin 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745562365a2663548.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论