简体   繁体   English

通过SVN向Wordpress提交插件更新不会反映出更改

[英]Submitting Plugin Update Through SVN to Wordpress Doesn't Reflect Changes

I released 2 days ago an update to my Wordpress plugin. 我两天前发布了对Wordpress插件的更新。 Which can be viewed here: http://wordpress.org/extend/plugins/lanoba-social/ 可以在这里查看: http : //wordpress.org/extend/plugins/lanoba-social/

The version went from 1.3 to 2.0 and (now to 2.01 as a test). 版本从1.3升级到2.0,(现在已经测试到2.01)。 When I look at the subversion repository, all my changes are reflected on Wordpress' servers. 当我查看Subversion存储库时,所有更改都反映在Wordpress的服务器上。 http://plugins.svn.wordpress.org/lanoba-social/trunk/ http://plugins.svn.wordpress.org/lanoba-social/trunk/

In fact, all websites using our plugin are detecting that there are updates too (and updates are succesful). 实际上,所有使用我们插件的网站都在检测到也有更新(并且更新成功)。

The problem is that the description of the plugin, the changelog and installation instructions (see first link) are not reflecting the visible changes in svn (see 2nd link). 问题在于插件的说明,changelog和安装说明(请参阅第一个链接)没有反映svn中的可见更改(请参阅第二个链接)。

The weird thing is that the screenshots ARE displaying the new ones and I am able to rename the plugin but it stops there. 奇怪的是,屏幕截图显示的是新截图,我能够重命名该插件,但是它就在那里停止了。

If anyone has any ideas on what I am doing wrong, I would really appreciate some help. 如果有人对我在做什么错有任何想法,我将非常感谢您的帮助。

There are a number of steps involved in checking in a new version and I find it a little fiddly myself. 签入新版本涉及很多步骤,我本人对此很不满意。 You have to do the following: 您必须执行以下操作:

  • update the "stable" version number in the readme.txt file 更新readme.txt文件中的“稳定”版本号
  • make a new tagged release in SVN with that version number 使用该版本号在SVN中制作新的标记版本
  • update the version number in the plugin's main .php file, which I think is the version number that displays 更新插件主.php文件中的版本号,我认为这是显示的版本号

You have to get all three in sync for it to work, and there are no error indications if you have one wrong, unfortunately. 您必须使所有三个同步才能工作,但是不幸的是,如果有一个错误,则没有错误指示。

If you only update the version number in the main .php file, I think you can see the new version number displayed but the repository's idea of who is current doesn't get updated. 如果您仅更新主.php文件中的版本号,我认为您可以看到显示的新版本号,但是存储库中谁是最新的想法不会得到更新。 This is kind of a trap, and I had difficulties with it myself. 这是一个陷阱,我自己遇到了困难。

I know this is an old question by now and you have probably answered it yourself, but thought it was worth adding an answer as people may be searching for it. 我知道这是一个古老的问题,您可能已经自己回答了,但是认为这值得增加答案,因为人们可能正在寻找它。

FAQ defining where the various fields come from: http://wordpress.org/extend/plugins/about/faq/ 常见问题解答,用于定义各个字段的来源: http//wordpress.org/extend/plugins/about/faq/

How to manage a plugin using SVN: http://wordpress.org/extend/plugins/about/svn/ 如何使用SVN管理插件: http : //wordpress.org/extend/plugins/about/svn/

Note: this 'manage a plugin using SVN' document describes how to update a release and explicitly mentions updating the Stable Tag in the trunk/readme.txt file. 注意:此“使用SVN管理插件”文档描述了如何更新发行版,并明确提到了在trunk / readme.txt文件中更新稳定标签。 I strongly suspect that the version displayed on the plugin page is taken from the plugin main .php file, while the actual version from which the update is made is taken from readme.txt stable tag and the svn tagged release. 我强烈怀疑插件页面上显示的版本取自插件主.php文件,而进行更新的实际版本取自readme.txt稳定标记和svn标记发行版。 In my mind this is probably a bug, highly confusing at least, and I think definitely undocumented ... 在我看来,这可能是一个错误,至少造成了极大的混乱,我认为绝对没有记载...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM