Skip to content

Instantly share code, notes, and snippets.

View dklawson's full-sized avatar

Dave Lawson dklawson

View GitHub Profile
@dklawson
dklawson / user-avatar.patch
Created October 16, 2012 14:51
User Avatar WP Plugin - dir patch 2
diff --git a/public_html/wp-content/plugins/user-avatar/timthumb-config.php b/public_html/wp-content/plugins/user-avatar/timthumb-config.php
index fce3b18..06ec2db 100644
--- a/public_html/wp-content/plugins/user-avatar/timthumb-config.php
+++ b/public_html/wp-content/plugins/user-avatar/timthumb-config.php
@@ -8,13 +8,6 @@ if( isset($_GET['id']) && is_numeric($_GET['id']) ){
} else {
die();
}
-// this is the standard set up with wp-content living 3 levels down
-define ('WP_CONTENT_DIR', dirname(dirname(dirname(__FILE__))));