current()->getPathname(); $dir = new Wp_Files_Directory(); if (!$this->isDir()) { return true; } if (!$dir->skipDirectory($path) && $this->isDir()) { return true; } return false; } }