private static function uploadDir() { if (empty(self::$wp_upload_dir)) { self::$wp_upload_dir = wp_upload_dir(); } return self::$wp_upload_dir; }
/** * Clear the internally cached upload dir. WP Thumb cached the results of wp_upload_dir() * for performance, however it's sometimes necessary to clear the internal cache, such as switching * blogs in multisite */ public static function clearUploadDirCache() { self::$wp_upload_dir = null; }