A command line PHP script that downloads and updates a copy of the latest stable version of every theme in the WordPress.org theme repository.
Really handy for doing local searches across all WordPress themes.
- PHP 5.2
- wget
- Unix system (only tested on Mac OS X)
cd WordPress-Theme-Directory-Slurper
./update
The theme/
directory will contain all the themes, when the script is done.
An SVN checkout of the entire repository is a BEAST of a thing. Additionally, not all themes listed in the svn repositoriy are currently active.
There is no guarantee that the theme's trunk is the approved version. All themes must go through an approval process. Using the zip file gets around this as it uses the theme API to figure it all out and gives you the latest stable version
Your first update will take a while. You'd be well-advised to let it run overnight. But subsequent updates are smart. The script tracks the SVN revision number of your latest update and then asks the Theme Trac install for a list of themes that have changed since. Only those changed themes are updated after the initial sync.
As of early 2015, it takes up about 3.7GB.
The last successful update revision number is stored in themes/.last-revision
. You can just overwrite that and the next update
will start after that revision.
Check out the [WordPress-Plugin-Directory-Slurper][https://github.com/markjaquith/WordPress-Plugin-Directory-Slurper].
Copyright (C) 2015 Aaron Jorbin
Based on [WordPress-Plugin-Directory-Slurper][https://github.com/markjaquith/WordPress-Plugin-Directory-Slurper] which is Copyright (C) 2011 Mark Jaquith
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.