Skip to main content

wordpress-how-to-create-and-push-changes

Wordpress: How to Create and Push Changes​

Overview:​

Wordpress SVN repos are located inside of the lib/wordpress_svn folder. There should be a folder for each app with the name powr-name-of-plugin. To update changes to any assets or readme on wordpress, go into the /assets or /trunk/readme.txt file for that app.

Once an app is accepted by wordpress and needs to be created:​

Note: This is to CREATE the folder, if it already exists skip this step

  • navigate to wordpress_svn, run: cd lib/wordpress_svn
  • Create repo, run: svn co http://plugins.svn.wordpress.org/powr-name-of-plugin
  • Add all files: svn add * --force

To commit a change to Wordpress (for updating the readme.txt or assets):​

  • Navigate to the folder, run: cd lib/wordpress_svn/powr-name-of-plugin
  • If adding new files, then add the folder where they are, like: svn add assets/*
  • Commit and push the change (this is like git commit and git push in one): svn ci -m 'My commit message'
  • The changes typically take a minute or two to propagate to wordpress. Check at wordpress.org/plugins/powr-name-of-plugin

HELP it's giving me bizarre errors that I can't fix:​

  • If all else fails you can copy your changes somewhere else, and delete the folder powr-name-of-plugin
  • Then pull the folder from scratch (follow above for "Creating the folder"), add your changes in again, then commit

Useful resources:​

Using Subversion with the WordPress Plugins Directory http://wordpress.org/plugins/about/svn/

FAQ about the WordPress Plugins Directory http://wordpress.org/plugins/about/faq/

WordPress Plugins Directory readme.txt standard http://wordpress.org/plugins/about/readme.txt

readme.txt validator: http://wordpress.org/plugins/about/validator/

Submission and promotion stuff http://codex.wordpress.org/Plugin_Submission_and_Promotion