If I am pushing a new version (v0.2) of my plugin (v0.1) on the repo, what does I do with the stable tag in readme file? Change it to v0.2?
What should come here? Clarifications please 🙂
If I am pushing a new version (v0.2) of my plugin (v0.1) on the repo, what does I do with the stable tag in readme file? Change it to v0.2?
What should come here? Clarifications please 🙂
You must be logged in to post a comment.
Yes. You need to:
/tags/0.2
I’d recommend this order of operations:
.php
file in trunk to reflect the new version, and commitsvn cp trunk tags/0.2
tags/0.2/readme.txt
andtrunk/readme.txt
to reflect new stable tagsvn commit -m "Tagging ver 0.2"
The
Stable tag
indicates the current version in the svn repository which you want users to use/update. In most cases simply set it to ‘trunk’, as explained in this article on Smashing Magazine, How To Improve Your WordPress Plugin’s Readme.txtFurthermore, from the actual WordPress documentation,
If you use the svn as your development repository then it makes sense to use an actual version number in the Stable tag. for example 1.5.2 while you have v2.0.0 in the repository on which you are currently working but it still under development.
Other reason to use a version number
If your plugin has translations and makes use of translated strings with localised functions, then you may want to consider using a stable version for the tag, as language files are loaded for that version. So if you update your plugin and add many new localised strings, then it makes sense to set your stable tag to the previous version to give time for translators to complete the translation for the new version. Once the translations are ready, you can switch the stable tag.