From 5e7076f7e619d1cbfdd14a2745a079c934bd2142 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 16 Jun 2016 04:00:01 +0200 Subject: [PATCH] Fix updating of previously slurped themes. Didn't work as the variable name was still `$plugins` not `$themes` and therefore the foreach would never start looping. --- update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update b/update index 5158dce..48c9ccf 100755 --- a/update +++ b/update @@ -54,7 +54,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( '#
  • ([^/]+)/
  • #', $themes, $matches );