Fixed 2 Issues

1. user location rule bug
2. attachment location rule bug in WP 3.5

Signed-off-by: Elliot Condon <e@elliotcondon.com>