Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ManiruzzamanAkash/7cb2c90aa5942400de06570fdf2b4a08 to your computer and use it in GitHub Desktop.
Save ManiruzzamanAkash/7cb2c90aa5942400de06570fdf2b4a08 to your computer and use it in GitHub Desktop.
How to upload the plugin changes to the WordPress marketplace

How to upload the plugin changes to the WordPress marketplace.

  1. Download the plugin repository Create a directory in Projects called woomarket/, and go to it. Use this command to download the plugin.
svn co https://plugins.svn.wordpress.org/plugin-slug

If you already have the project, you can update to the latest version by doing

svn up
  1. Make changes Copy plugin and replace files in the trunk/ directory.

  2. Make a tag

svn cp trunk tags/SOME_VERSION
  1. After adding and copying files, you need to add them to the commit.
svn st | grep ^\? | sed 's/?    //' | xargs svn add

Once added, check the statuses of the files

svn status

If you see A to every file, this means the files are added. If you see "?" the files haven't been added yet. If you see "!", file(s) are deleted.

In case you need to remove files from commit, which were removed:

svn st | grep ^\! | sed 's/!    //' | xargs svn rm

More about files statuses can be found here: https://www.linuxtopia.org/online_books/programming_tool_guides/version_control_with_subversion/svn.tour.cycle_3.html

  1. Commit and push changes Before committing, check statuses again, you shouldn't see "!" or "?", only "M", "A", "D". Only then proceed to commit:
svn ci -m "tagging version SOME_VERSION" --username YOURWPUsername

After committing, check statuses again, the list should be empty.

Tips & tricks

SVN In case svn is not working for you, or it says that there is no such command, try

brew install svn If you still get some errors, try:

brew update If svn still not working, try again the install command.

Files It might be, that when you do "svn status", the list is not full because of too many files. In such case, the output can be saved to file

svn status > output.txt Committing It's possible, that you will get an error about time out while adding files to commit, just try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment