diff --git a/checks/class-directories-macosx-check.php b/checks/class-directories-macosx-check.php new file mode 100644 index 00000000..f56b9113 --- /dev/null +++ b/checks/class-directories-macosx-check.php @@ -0,0 +1,65 @@ +error[] = sprintf( + '%s: %s', + __( 'REQUIRED', 'theme-check' ), + __( 'Please remove any extraneous directories like .git, .svn or __MACOSX from the ZIP file before uploading it. For the List of disallowed files', 'theme-check' ) + ); + $ret = false; + } + } + + return $ret; + } + + /** + * Get error messages from the checks. + * + * @return array Error message. + */ + public function getError() { + return $this->error; + } +} + +$themechecks[] = new Directories_Macosx_Check();