Skip to content

Commit

Permalink
Various minor fixes as per PR [aaronjorbin#6](aaronjorbin#6), [aaronj…
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jun 29, 2016
1 parent 7141bb3 commit fb4fc51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,20 @@ Your first update will take a while. You'd be well-advised to let it run overnig

### How much disk space do I need? ###

As of early 2015, it takes up about 3.7GB.
As of mid 2016, it takes up about 5.6GB.

### Something went wrong, how do I do a partial update? ###

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.

### What if I want Plugins instead of Themes? ###
Check out the [WordPress-Plugin-Directory-Slurper][https://github.com/markjaquith/WordPress-Plugin-Directory-Slurper].
Check out the [WordPress-Plugin-Directory-Slurper](https://github.com/markjaquith/WordPress-Plugin-Directory-Slurper).

Copyright & License
-------------------
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
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
Expand Down
5 changes: 2 additions & 3 deletions update
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ switch ( $type ) {
echo $cmd . ": invalid command\r\n";
echo 'Usage: php ' . $cmd . " [command]\r\n\r\n";
echo "Available commands:\r\n";
echo " all - Downloads full plugin zips\r\n";
echo " readme - Downloads plugin readmes only\r\n";
echo " all - Downloads full theme zips\r\n";
die();
}

Expand Down Expand Up @@ -51,7 +50,7 @@ if ( $last_revision != $svn_last_revision ) {
$changelog_url = sprintf( 'https://themes.trac.wordpress.org/log/?verbose=on&mode=follow_copy&format=changelog&rev=%d&limit=%d', $svn_last_revision, $svn_last_revision - $last_revision );
$changes = file_get_contents( $changelog_url );
preg_match_all( '#^' . "\t" . '*\* ([^/A-Z ]+)[ /].* \((added|modified|deleted|moved|copied)\)' . "\n" . '#m', $changes, $matches );
$plugins = array_unique( $matches[1] );
$themes = array_unique( $matches[1] );
} else {
$themes = file_get_contents( 'https://themes.svn.wordpress.org/' );
preg_match_all( '#<li><a href="([^/]+)/">([^/]+)/</a></li>#', $themes, $matches );
Expand Down

0 comments on commit fb4fc51

Please sign in to comment.