WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I published a plugin and then installed it into a test site to check it was published OK.

The copy that was installed contains:

  • plugin.php
  • readme.txt
  • trunk/plugin.php
  • trunk/readme.txt

The trunk folder is redundant and other plugins don't seem to come duplicated. How can I avoid the plugin files getting downloaded twice?

share|improve this question
What does trunk of SVN looks like? – Rarst May 2 '13 at 18:22
Are you new to using SVN? I know i had issues sorting out the folder and file structure when i started out. Totally confusing when you're starting out.. (well it was for me, i can't speak for you obviously)... – t31os May 2 '13 at 19:14
@Rarst trunk looks like in question. Nice idea, though. I had hoped that I'd copied trunk into itself but no such luck. – oks May 2 '13 at 22:36
@t3los Yes very new! Thanks – oks May 2 '13 at 22:37
@Rarst in fact you are right. I had trunk duplicated in the tags folder. Mystery over. Thank you. – oks May 2 '13 at 23:40
up vote 2 down vote accepted

I do not know which OS and/or software you use but regarding SVN it's quite simple :

$ svn co http://plugins.svn.wordpress.org/your-plugin-name

Then you just have to add your files in trunk and/or maybe in assets (banner,screenshots). Then :

$ svn add trunk/*

and or :

$ svn add assets/*

Last step is :

$ svn ci -m "initial upload"

That's pretty much what I use to release plugins on wordpress.org, hope this will help :)

share|improve this answer
@TwwetPressFr Thanks. I did that. At least I think I did. I guess I did something wrong though, because the trunk folder gets duplicated. – oks May 2 '13 at 22:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.