admin管理员组文章数量:1295915
I have a plugin that I am using GitHub to manage my updates through the GitHub Releases feature. Since this is a private plugin I can't put in up in the Wordpress Plugin Directory.
The plugin successfully identifies when a new version is ready from each site it's on. However, when I click the update now button I get an error:
Update failed: <!-- end file --> {"success":true,"data":{"update":"plugin","slug":"plugin-name","oldVersion":"Version 1.0.0","newVersion":"","plugin":"plugin-name\/plugin-name.php","pluginName":"Plugin Name"}}
However, if I reload the Plugins page the correct version number is listed and the correct code has been loaded (based on looking at the plugin editor).
Can you please help me understand what is causing this error and perhaps how to set up a success message or something if needed? ***If additional code from within the plugin is need, please let me know what you need in the comments section.
本文标签: phpGetting an error when my plugin is updatedbut the files update correctly
版权声明:本文标题:php - Getting an error when my plugin is updated, but the files update correctly 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741620873a2388802.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论