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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

WordPress 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:

  1. Deactivate and delete your plug-in from the site.
  2. Re-name the plug-in in the code / rename the plugin folder.
  3. 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