Skip to content

Commit 7ff5974

Browse files
committed
Merge pull request #261 from phase2/bug/staged-theme-validate
Remove theme validate from validate:staged.
2 parents dec6237 + a5e462e commit 7ff5974

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tasks/quality.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ module.exports = function(grunt) {
205205
grunt.loadNpmTasks('grunt-' + mode);
206206
// Wrap each task configured for validate in the newer command.
207207
// grunt-phplint already contains complex caching that does the same thing.
208-
validate = validate.map(function(item) { return item != 'phplint:all' ? mode + ':' + item : item; });
208+
validate = validate.filter(function(item) {
209+
return item.indexOf('themes:') !== 0;
210+
}).map(function(item) {
211+
return item != 'phplint:all' ? mode + ':' + item : item;
212+
});
209213
}
210214

211215
if (validate.length) {

0 commit comments

Comments
 (0)