smarter wordpress and theme folder handling