$otherfile ) { array_push( $filenames, strtolower( basename( $other_key ) ) ); } $blacklist = array( '\.zip' => __( 'Zipped Plugin', 'theme-check' ), ); checkcount(); foreach ( $blacklist as $file => $reason ) { if ( $filename = preg_grep( '/' . $file . '/', $filenames ) ) { $error = implode( array_unique( $filename ), ' ' ); $this->error[] = sprintf( '' . __( 'REQUIRED','theme-check' ) . ': ' . __( 'Zip file found. Plugins are not allowed in themes. The zip file found was %s.', 'theme-check' ), $error ); $ret = false; } } return $ret; } function getError() { return $this->error; } } $themechecks[] = new IncludedPlugins;