예제 #1
0
 private static function uploadDir()
 {
     if (empty(self::$wp_upload_dir)) {
         self::$wp_upload_dir = wp_upload_dir();
     }
     return self::$wp_upload_dir;
 }
예제 #2
0
파일: wpthumb.php 프로젝트: RA2WP/RA2WP
 /**
  * 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;
 }